VMware Cloud Community
iamsohappy
Contributor
Contributor

CSE 2.0 installation error

While installing CSE 2.0.0 extension with command cse install -c ./config.yaml i got error during execution of cust-ubuntu-16.04.sh script.

There was a wrong command in cust-ubuntu-16.04.sh because i edited script earlier, so i fixed it.

Then i deleted extension via vcd-cli, temporary template and ova file were deleted manually (and i guess there was a mistake, i should use --update flag with cse install command).

Then i rerun cse install -c ./config.yaml (without --update).

Then i got error below. Temporary VM rebooted twice, and just before executing cust-ubuntu-16.04.sh inside VM, all process crashed.

pyVmomi.VmomiSupport.vim.fault.InvalidGuestLogin: (vim.fault.InvalidGuestLogin) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = 'Failed to authenticate with the guest operating system using the supplied credentials.',

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

}

Traceback (most recent call last):

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/config.py", line 587, in create_template

    vapp = VApp(client, resource=vdc.get_vapp(vapp_name))

  File "/usr/local/lib/python3.7/site-packages/pyvcloud/vcd/vdc.py", line 141, in get_vapp

    return self.client.get_resource(self.get_resource_href(name))

  File "/usr/local/lib/python3.7/site-packages/pyvcloud/vcd/vdc.py", line 108, in get_resource_href

    raise EntityNotFoundException('vApp named \'%s\' not found' % name)

pyvcloud.vcd.exceptions.EntityNotFoundException: vApp named 'ubuntu1604-temp' not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/usr/local/bin/cse", line 10, in <module>

    sys.exit(cli())

  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__

    return self.main(*args, **kwargs)

  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main

    rv = self.invoke(ctx)

  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke

    return callback(*args, **kwargs)

  File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func

    return f(get_current_context(), *args, **kwargs)

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/cse.py", line 227, in install

    amqp_install=amqp_install, ext_install=ext_install)

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/config.py", line 516, in install_cse

    org=org)

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/config.py", line 601, in create_template

    ssh_key)

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/config.py", line 660, in _create_temp_vapp

    is_photon=is_photon)

  File "/usr/local/lib/python3.7/site-packages/container_service_extension/config.py", line 754, in _customize_vm

    callback=vgr_callback())

  File "/usr/local/lib/python3.7/site-packages/vsphere_guest_run/vsphere.py", line 203, in execute_script_in_guest

    self.upload_file_to_guest(vm, user, password, content, target)

  File "/usr/local/lib/python3.7/site-packages/vsphere_guest_run/vsphere.py", line 143, in upload_file_to_guest

    False)

  File "/usr/local/lib/python3.7/site-packages/pyVmomi/VmomiSupport.py", line 706, in <lambda>

    self.f(*(self.args + (obj,) + args), **kwargs)

  File "/usr/local/lib/python3.7/site-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod

    return self._stub.InvokeMethod(self, info, args)

  File "/usr/local/lib/python3.7/site-packages/pyVmomi/SoapAdapter.py", line 1374, in InvokeMethod

    raise obj # pylint: disable-msg=E0702

pyVmomi.VmomiSupport.InvalidGuestLogin: (vim.fault.InvalidGuestLogin) {

   dynamicType = <unset>,

   dynamicProperty = (vmodl.DynamicProperty) [],

   msg = 'Failed to authenticate with the guest operating system using the supplied credentials.',

   faultCause = <unset>,

   faultMessage = (vmodl.LocalizableMessage) []

I cant login into temporary VM with autogenerated password from VM's Guest OS Customization section.

I particularly solved this problem by renaming temporary vApp in config.yaml (temp_vapp).

After that renamimg cse install -c ./config.yaml worked fine, then i successefully created k8s cluster via vcd cse command.

But from time to time i get the same error as above even when use --update flag. And afrer renaming temp_vapp, it works again.

Could somebody tell is this some CSE version's bug or feature? Or its just my bad knowledge of documentation?

0 Kudos
0 Replies