Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Note: You should see <java.lang.NullPointerException> at the end of the command output.
Example:
For vCenter Server 6.5:
From:
def registerUserAndService(self, user_name, user_id, service_spec):
"""
# Register user and service (include reverse proxy) through cisreg.
@param service_spec: the service object defined in vdc_services_spec.json
"""
service_name = service_spec["service-name"]
sso_user_spec = self.get_solution_user_spec(user_name, user_id)
cisreg_spec = self.generate_cisreg_service_spec(service_spec, CISREG_SERVICE_SPEC_TEMPLATE)
rp_spec = self.generate_reverse_proxy_spec(service_spec, REVERSE_PROXY_SPEC_TEMPLATE)
service_cisreg = sso_user_spec + cisreg_spec + rp_spec
keystore = VecsKeyStore(service_name)
svcinfo = cloudvm_sso_cm_register(
keystore, self._generate_cisreg_service_spec_file(service_name, service_cisreg), service_name)
To:
def registerUserAndService(self, user_name, user_id, service_spec):
"""
# Register user and service (include reverse proxy) through cisreg.
@param service_spec: the service object defined in vdc_services_spec.json
"""
service_name = service_spec["service-name"]
sso_user_spec = self.get_solution_user_spec(user_name, user_id)
cisreg_spec = self.generate_cisreg_service_spec(service_spec, CISREG_SERVICE_SPEC_TEMPLATE)
rp_spec = self.generate_reverse_proxy_spec(service_spec, REVERSE_PROXY_SPEC_TEMPLATE)
service_cisreg = sso_user_spec + cisreg_spec + rp_spec + "cmreg.serviceid=dcc87805-2651-c4e0-977b-9cc2265d6a91"
keystore = VecsKeyStore(service_name)
svcinfo = cloudvm_sso_cm_register(
keystore, self._generate_cisreg_service_spec_file(service_name, service_cisreg), service_name, regOp=’register’)
For vCenter Server 6.7:
From:
def registerUserAndService(self, user_name, user_id, service_spec):
"""
# Register user and service (include reverse proxy) through cisreg.
@param service_spec: the service object defined in vdc_services_spec.json
"""
service_name = service_spec["service-name"]
sso_user_spec = self.get_solution_user_spec(user_name, user_id)
cisreg_spec = self.generate_cisreg_service_spec(service_spec, CISREG_SERVICE_SPEC_TEMPLATE)
rp_spec = self.generate_reverse_proxy_spec(service_spec, REVERSE_PROXY_SPEC_TEMPLATE)
service_cisreg = sso_user_spec + cisreg_spec + rp_spec
keystore = VecsKeyStore(service_name)
svcinfo = cloudvm_sso_cm_register(
keystore, self._generate_cisreg_service_spec_file(service_name, service_cisreg), service_name)
To:
def registerUserAndService(self, user_name, user_id, service_spec):
"""
# Register user and service (include reverse proxy) through cisreg.
@param service_spec: the service object defined in vdc_services_spec.json
"""
service_name = service_spec["service-name"]
sso_user_spec = self.get_solution_user_spec(user_name, user_id)
cisreg_spec = self.generate_cisreg_service_spec(service_spec, CISREG_SERVICE_SPEC_TEMPLATE)
rp_spec = self.generate_reverse_proxy_spec(service_spec, REVERSE_PROXY_SPEC_TEMPLATE)
service_cisreg = sso_user_spec + cisreg_spec + rp_spec + "cmreg.serviceid=dcc87805-2651-c4e0-977b-9cc2265d6a91"
keystore = VecsKeyStore(service_name)
svcinfo = cloudvm_sso_cm_register(
keystore, self._generate_cisreg_service_spec_file(service_name, service_cisreg), service_name, regOp=’register’,
To:
def Main():
log('CLS firstboot started')
rc = 1
vdc_fb = VdcSvcFB('content-library')
vdc_fb.set_vmon_registered(install_common.VDCS_VMON_NAME)
ex = None
try:
# TODO: We may need to change the component name, but now we have to use "vdcs" which the component name defined in vpxlin.
# Note: This name must be as same as VCDE_COMPONENT_NAME in common_install.py
if vdc_fb.get_action() == FBActions.FIRSTBOOT:
vdc_fb.prepare_install()
# TODO: we need to tell if this is upgrade, and for upgrade
# (inplace, or migration based, run the in-place upgrade script.
vdc_fb.register_cis()
pass # vdc_fb.setup_vdc()
pass # vdc_fb.start_service()
elif vdc_fb.get_action() == FBActions.START:
# exiting maintenance mode
# TODO: re-register CM?
pass # vdc_fb.start_service()
Note: You should now see the service registration and SSL Trust for cis.cls.