Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 894152 Details for
Bug 1061372
[RFE]: Add PackStack support for vCenter driver.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Upstream patch
0005-vCenter-fix-parameters.patch (text/plain), 12.16 KB, created by
Lon Hohberger
on 2014-05-09 18:44:26 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2014-05-09 18:44:26 UTC
Size:
12.16 KB
patch
obsolete
>From 31891ae6fa792576eb12bd097f5c73a4dfca5069 Mon Sep 17 00:00:00 2001 >From: Francesco Vollero <fvollero@redhat.com> >Date: Tue, 6 May 2014 13:00:06 +0200 >Subject: [PATCH] [vCenter] Fix the parameters duplicated in answer file > >Also this patch consolidate the options to a single vcenter host >for Cinder and Nova. > >Change-Id: Iff01770b82dfceda1b3c706fb8a4556b38ecb774 >Fixes: rhbz#1061372, rhbz#1092008 >--- > packstack/plugins/cinder_250.py | 53 +---------------------------------- > packstack/plugins/nova_300.py | 56 +------------------------------------ > packstack/plugins/prescript_000.py | 57 ++++++++++++++++++++++++++++++++++++++ > 3 files changed, 59 insertions(+), 107 deletions(-) > >diff --git a/packstack/plugins/cinder_250.py b/packstack/plugins/cinder_250.py >index 6e56780..9d057b3 100644 >--- a/packstack/plugins/cinder_250.py >+++ b/packstack/plugins/cinder_250.py >@@ -221,57 +221,6 @@ def initConfig(controllerObject): > > controller.addGroup(groupDict, paramsList) > >- def check_vcenter_options(config): >- return (config.get('CONFIG_NOVA_INSTALL', 'y') == 'n' and >- config.get('CONFIG_VMWARE_BACKEND', 'n') == 'y' and >- config.get('CONFIG_CINDER_BACKEND', 'lvm') == 'vmdk') >- >- paramsList = [ >- {"CMD_OPTION" : "cinder-vcenter-host", >- "USAGE" : ("The IP address of the VMware vCenter datastore"), >- "PROMPT" : ("Enter the IP address of the VMware vCenter datastore to use with Cinder"), >- "OPTION_LIST" : [], >- "VALIDATORS" : [validators.validate_ip], >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : False, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_HOST", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False }, >- {"CMD_OPTION" : "cinder-vcenter-username", >- "USAGE" : ("The username to authenticate to VMware vCenter datastore"), >- "PROMPT" : ("Enter the username to authenticate on VMware vCenter datastore"), >- "VALIDATORS" : [validators.validate_not_empty], >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : False, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_USER", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False,}, >- {"CMD_OPTION" : "cinder-vcenter-password", >- "USAGE" : ("The password to authenticate to VMware vCenter datastore"), >- "PROMPT" : ("Enter the password to authenticate on VMware vCenter datastore"), >- "VALIDATORS" : [validators.validate_not_empty], >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : True, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_PASSWORD", >- "VALIDATORS" : [validators.validate_not_empty], >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False,}, >- ] >- >- groupDict = { "GROUP_NAME" : "CINDERVCENTEROPTIONS", >- "DESCRIPTION" : "Cinder VMware vCenter Config parameters", >- "PRE_CONDITION" : check_vcenter_options, >- "PRE_CONDITION_MATCH" : True, >- "POST_CONDITION" : False, >- "POST_CONDITION_MATCH" : True} >- >- controller.addGroup(groupDict, paramsList) > > def initSequences(controller): > if controller.CONF['CONFIG_CINDER_INSTALL'] != 'y': >@@ -427,7 +376,7 @@ def create_manifest(config): > config['FIREWALL_PORTS'] = "'3260', '8776'" > config['FIREWALL_CHAIN'] = "INPUT" > >- if config['CONFIG_NOVA_INSTALL'] == 'y': >+ if (config['CONFIG_NOVA_INSTALL'] == 'y' and config['CONFIG_VMWARE_BACKEND']=='n'): > for host in split_hosts(config['CONFIG_NOVA_COMPUTE_HOSTS']): > config['FIREWALL_ALLOWED'] = "'%s'" % host > config['FIREWALL_SERVICE_ID'] = "cinder_%s" % host >diff --git a/packstack/plugins/nova_300.py b/packstack/plugins/nova_300.py >index 77fb9f8..0587ca0 100644 >--- a/packstack/plugins/nova_300.py >+++ b/packstack/plugins/nova_300.py >@@ -309,50 +309,6 @@ def initConfig(controllerObject): > "NEED_CONFIRM" : False, > "CONDITION" : False }, > ], >- "NOVA_VCENTER": [ >- {"CMD_OPTION" : "nova-vcenter-host", >- "USAGE" : ("The IP address of the VMware vCenter server"), >- "PROMPT" : ("Enter the IP address of the VMware vCenter server to use with Nova"), >- "OPTION_LIST" : [], >- "VALIDATORS" : [validators.validate_ip], >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : False, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_HOST", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False }, >- {"CMD_OPTION" : "nova-vcenter-username", >- "USAGE" : ("The username to authenticate to VMware vCenter server"), >- "PROMPT" : ("Enter the username to authenticate on VMware vCenter server"), >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : False, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_USER", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False,}, >- {"CMD_OPTION" : "nova-vcenter-password", >- "USAGE" : ("The password to authenticate to VMware vCenter server"), >- "PROMPT" : ("Enter the password to authenticate on VMware vCenter server"), >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : True, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_PASSWORD", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False,}, >- {"CMD_OPTION" : "nova-vcenter-cluster", >- "USAGE" : ("The name of the vCenter cluster"), >- "PROMPT" : ("Enter the name of the vCenter datastore"), >- "DEFAULT_VALUE" : "", >- "MASK_INPUT" : False, >- "LOOSE_VALIDATION": True, >- "CONF_NAME" : "CONFIG_VCENTER_CLUSTER_NAME", >- "USE_DEFAULT" : False, >- "NEED_CONFIRM" : False, >- "CONDITION" : False,}, >- ], > } > > def use_nova_network(config): >@@ -365,10 +321,6 @@ def initConfig(controllerObject): > config['CONFIG_NEUTRON_INSTALL'] != 'y' and \ > config['CONFIG_NOVA_NETWORK_MANAGER'] == manager > >- def use_nova_vcenter(config): >- return (config['CONFIG_NOVA_INSTALL'] == 'y' and >- config['CONFIG_VMWARE_BACKEND'] == 'y') >- > nova_groups = [ > {"GROUP_NAME" : "NOVA", > "DESCRIPTION" : "Nova Options", >@@ -388,12 +340,6 @@ def initConfig(controllerObject): > "PRE_CONDITION_MATCH" : True, > "POST_CONDITION" : False, > "POST_CONDITION_MATCH" : True}, >- {"GROUP_NAME" : "NOVA_VCENTER", >- "DESCRIPTION" : "Nova VMware vCenter Config parameters", >- "PRE_CONDITION" : use_nova_vcenter, >- "PRE_CONDITION_MATCH" : True, >- "POST_CONDITION" : False, >- "POST_CONDITION_MATCH" : True}, > ] > > for group in nova_groups: >@@ -557,7 +503,7 @@ def createcomputemanifest(config): > else: > manifestdata += getManifestTemplate("nova_compute_libvirt.pp") > if (config['CONFIG_VMWARE_BACKEND'] != 'y' and >- config['CONFIG_CINDER_INSTALL'] == 'y' and >+ config['CONFIG_CINDER_INSTALL'] == 'y' and > config['CONFIG_CINDER_BACKEND'] == 'gluster'): > manifestdata += getManifestTemplate("nova_gluster.pp") > if (config['CONFIG_VMWARE_BACKEND'] != 'y' and >diff --git a/packstack/plugins/prescript_000.py b/packstack/plugins/prescript_000.py >index 5eb214e..fb4ec51 100644 >--- a/packstack/plugins/prescript_000.py >+++ b/packstack/plugins/prescript_000.py >@@ -236,6 +236,63 @@ def initConfig(controllerObject): > "POST_CONDITION_MATCH" : True} > controller.addGroup(groupDict, paramsList) > >+ def use_vcenter(config): >+ return (config['CONFIG_NOVA_INSTALL'] == 'y' and >+ config['CONFIG_VMWARE_BACKEND'] == 'y') >+ >+ paramsList = [ >+ {"CMD_OPTION" : "vcenter-host", >+ "USAGE" : ("The IP address of the VMware vCenter server"), >+ "PROMPT" : ("Enter the IP address of the VMware vCenter server to use with Nova"), >+ "OPTION_LIST" : [], >+ "VALIDATORS" : [validators.validate_ip], >+ "DEFAULT_VALUE" : "", >+ "MASK_INPUT" : False, >+ "LOOSE_VALIDATION": True, >+ "CONF_NAME" : "CONFIG_VCENTER_HOST", >+ "USE_DEFAULT" : False, >+ "NEED_CONFIRM" : False, >+ "CONDITION" : False }, >+ {"CMD_OPTION" : "vcenter-username", >+ "USAGE" : ("The username to authenticate to VMware vCenter server"), >+ "PROMPT" : ("Enter the username to authenticate on VMware vCenter server"), >+ "DEFAULT_VALUE" : "", >+ "MASK_INPUT" : False, >+ "LOOSE_VALIDATION": True, >+ "CONF_NAME" : "CONFIG_VCENTER_USER", >+ "USE_DEFAULT" : False, >+ "NEED_CONFIRM" : False, >+ "CONDITION" : False,}, >+ {"CMD_OPTION" : "vcenter-password", >+ "USAGE" : ("The password to authenticate to VMware vCenter server"), >+ "PROMPT" : ("Enter the password to authenticate on VMware vCenter server"), >+ "DEFAULT_VALUE" : "", >+ "MASK_INPUT" : True, >+ "LOOSE_VALIDATION": True, >+ "CONF_NAME" : "CONFIG_VCENTER_PASSWORD", >+ "USE_DEFAULT" : False, >+ "NEED_CONFIRM" : False, >+ "CONDITION" : False,}, >+ {"CMD_OPTION" : "vcenter-cluster", >+ "USAGE" : ("The name of the vCenter cluster"), >+ "PROMPT" : ("Enter the name of the vCenter datastore"), >+ "DEFAULT_VALUE" : "", >+ "MASK_INPUT" : False, >+ "LOOSE_VALIDATION": True, >+ "CONF_NAME" : "CONFIG_VCENTER_CLUSTER_NAME", >+ "USE_DEFAULT" : False, >+ "NEED_CONFIRM" : False, >+ "CONDITION" : False,}, >+ ] >+ >+ groupDict = {"GROUP_NAME" : "VMWARE", >+ "DESCRIPTION" : "vCenter Config Parameters", >+ "PRE_CONDITION" : use_vcenter, >+ "PRE_CONDITION_MATCH" : True, >+ "POST_CONDITION" : False, >+ "POST_CONDITION_MATCH" : True} >+ >+ controller.addGroup(groupDict, paramsList) > > def initSequences(controller): > prescript_steps = [ >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1061372
: 894152 |
897266