Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag VIC appliance VM failed #1080

Closed
sguyennet opened this issue Nov 15, 2017 · 20 comments
Closed

Tag VIC appliance VM failed #1080

sguyennet opened this issue Nov 15, 2017 · 20 comments
Assignees

Comments

@sguyennet
Copy link

sguyennet commented Nov 15, 2017

For bug reports, please include the information below:

VIC Product version:

OVA version (e.g. vic-v1.2.3-aaaaaaa.ova)

vic-v1.2.1-4104e5f9.ova

Deployment details:

Environment where the OVA is deployed

vSphere 6.5 environement

Steps to reproduce:

Browse to http://vic_fqdn
Register the appliance with the PSC.

Actual behavior:

Display the error message "Failed to locate VIC Appliance. Please check the vCenter Server provided and try again".

The tag is not created on the VIC appliance VM.

Expected behavior:

The tag is created.

Additional details as necessary:

The password for the SSO administrator user contains a ":" character.
This is what trigger the issue. I believe this is due to the Login function in rest_client.go.

https://github.com/sguyennet/vic-product/blob/master/installer/vendor/github.com/vmware/vic/pkg/vsphere/tags/rest_client.go

@andrewtchin andrewtchin added product/ova Related to the OVA packaging of vSphere Integrated Containers priority/high labels Nov 17, 2017
@andrewtchin andrewtchin added this to the Sprint 22 Lifecycle milestone Nov 22, 2017
@AngieCris AngieCris self-assigned this Nov 29, 2017
@andrewtchin
Copy link
Contributor

Workaround is to change the vCenter password. Lowering priority.

@AngieCris
Copy link
Contributor

AngieCris commented Dec 4, 2017

When attaching the tags, we're sending http POST request to vSphere automation API session endpoint (https://VC_IP/rest/com/vmware/cis/session), with the VC login creds in the request header. However, when the admin password of the VC contains a colon, the POST request fails with status code 401 Unauthorized. Therefore the tag failed to attach.

To confirm this, I wrote a separate go program that simply sends a HTTP POST request to the session endpoint of a running VC with password containing a colon. The request fails with status 401. However, testing with a VC with password not containing a colon, the POST request succeeds with status 200.

I posted to bugzilla reporting this bug on vSphere automation API: https://bugzilla.eng.vmware.com/show_bug.cgi?id=2013306
Will update here if it gets fixed.

@andrewtchin
Copy link
Contributor

This issue will be moved to not ready at the end of this sprint pending results of engaging with vSphere team. Once the vSphere issue is resolved we can see if this is resolved.

@AngieCris
Copy link
Contributor

Confirmed it's a bug on VAPI. Will update here once it's fixed.

(https://bugzilla.eng.vmware.com/show_bug.cgi?id=2013306)

@andrewtchin andrewtchin added the status/need-info Additional information is needed to make progress label Dec 7, 2017
@AngieCris
Copy link
Contributor

AngieCris commented Dec 11, 2017

According to the VAPI team, it's fixed in VC 6.7 but still a bug for earlier builds. The VC I tested against has version 6.5. The bug is nominated to be fixed for 6.5 u2 release next year.
(https://bugzilla.eng.vmware.com/show_bug.cgi?id=2013306)

For now let's update the documentation and specify that appliance registration will fail and the appliance VM will not be successfully tagged if the target VC has admin password that contains a colon.
@stuclem I've added a kind/note tag to this ticket. Can you grab it and update the doc accordingly? Thanks.

@AngieCris AngieCris added impact/doc/note Requires creation of or changes to an official release note and removed status/need-info Additional information is needed to make progress labels Dec 11, 2017
@stuclem
Copy link
Contributor

stuclem commented Dec 12, 2017

Thanks @AngieCris - I'll keep this in the release notes. If you think that it merits a mention in the core docs, I'll add a note there too.

@AngieCris
Copy link
Contributor

@stuclem Just in the release note should be fine. Thanks!

@stuclem
Copy link
Contributor

stuclem commented Jan 9, 2018

Attempted writeup for release notes:

  • Tagging the appliance fails. #1080
    When registering the appliance with the Platform Services Controller, registration fails with the error Failed to locate VIC Appliance. Please check the vCenter Server provided and try again. This issue occurs if the vCenter Single Sign-On password contains a colon (:).

    Workaround: Change the vCenter Single Sign-On password.

@andrewtchin @AngieCris is this OK?

@AngieCris
Copy link
Contributor

AngieCris commented Jan 9, 2018

According to the updates in the bugzilla ticket https://bugzilla.eng.vmware.com/show_bug.cgi?id=2013306, the bug is fixed in vSphere 6.5u2 and vSphere 6.7. But for vSphere 6.5u1, the issue still exists.
@andrewtchin Should we say sth along the lines of "For some vSphere versions, the issue occurs but for others it doesn't"?

@andrewtchin
Copy link
Contributor

Sure the doc can call out the applicable vSphere version

@AngieCris
Copy link
Contributor

AngieCris commented Jan 10, 2018

@stuclem Can you mention in the note that the issue is fixed for vSphere versions 6.5u2 and later, but still exists for earlier vSphere versions? Thanks.

@AngieCris AngieCris removed the product/ova Related to the OVA packaging of vSphere Integrated Containers label Jan 10, 2018
@stuclem
Copy link
Contributor

stuclem commented Jan 11, 2018

@AngieCris I don't think that we can mention that it's fixed in 6.5u2 or 6.7 as those releases are not out publicly yet. I updated the RN as follows:

  • Tagging the appliance fails. #1080
    When registering the appliance with the Platform Services Controller, registration fails with the error Failed to locate VIC Appliance. Please check the vCenter Server provided and try again. This problem results from an issue in vSphere 6.5u1, and occurs if the vCenter Single Sign-On password contains a colon (:).

    Workaround: Change the vCenter Single Sign-On password. The issue will be fixed in a future vSphere release.

Is this OK? Thanks!

@stuclem stuclem removed their assignment Jan 11, 2018
@andrewtchin
Copy link
Contributor

I think we can close this once the doc issues are resolved since this is not a bug in vic-product, @AngieCris let me know if you disagree

@AngieCris
Copy link
Contributor

@stuclem Thanks! Looks good to me.

@AngieCris
Copy link
Contributor

Included in release note. Close this issue.

@AngieCris
Copy link
Contributor

AngieCris commented Jan 11, 2018

@stuclem one small suggestion: since there're multiple other reasons for tagging to fail, it might help mentioning password in the title:

  • Tagging the appliance fails when vCenter password contains colon. #1080

@stuclem
Copy link
Contributor

stuclem commented Jan 15, 2018

Fixed the RN. Thanks @AngieCris .

@stuclem stuclem removed the impact/doc/note Requires creation of or changes to an official release note label Jan 15, 2018
@stuclem
Copy link
Contributor

stuclem commented Feb 6, 2018

@AngieCris is this fix in 1.3.1? Thanks!

@AngieCris
Copy link
Contributor

@stuclem I don't think so...If the customer uses VC 6.5u1 then the problem still exists. Do we want to add the note in 1.3.1 release notes as well?

@stuclem
Copy link
Contributor

stuclem commented Feb 26, 2018

@AngieCris apologies for the delay in replying - this is in the RNs for 1.3.1 already, carried over from 1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants