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

Document that after OVA upgrade there are duplicate VCHs in admiral #847

Closed
lgayatri opened this issue Sep 21, 2017 · 14 comments
Closed

Document that after OVA upgrade there are duplicate VCHs in admiral #847

lgayatri opened this issue Sep 21, 2017 · 14 comments
Assignees
Labels
area/pub/vsphere Published documentation for vSphere administrators area/pub Published documentation for end-users product/admiral Related to the vSphere Integrated Containers Managment Portal product/ova Related to the OVA packaging of vSphere Integrated Containers

Comments

@lgayatri
Copy link

Post successful upgrade of OVA from 1.1.1 to 1.2.y , I am seeing duplicate VCHs as in the screenshot below:

root@vic-st-h2-186 [ /etc/vmware/upgrade ]# ./upgrade_1.1_to_1.2.sh
Getting password from harbor.cfg
Enter vCenter Server FQDN or IP: wdc-stvc3944-152-dhcp212.eng.vmware.com
Enter vCenter Administrator Username: administrator@vsphere.sgp.dbs.com
Enter vCenter Administrator Password:
If using an external PSC, enter the FQDN of the PSC instance (leave blank otherwise): wdc-stvc3944-152-dhcp211.eng.vmware.com
If using an external PSC, enter the PSC Admin Domain (leave blank otherwise): vsphere.sgp.dbs.com
Starting upgrade 2017-09-21 06:24:11 +0000 UTC
Preparing upgrade environment
Disabling and stopping Admiral and Harbor path startup
Finished preparing upgrade environment
Performing pre-upgrade checks
Starting Admiral upgrade
[=] Shutting down Harbor and Admiral
[=] Upgrade Admiral
Admiral migration complete
Archiving previous Admiral data
Cleaning up
Admiral upgrade complete
Starting Admiral
Updating Admiral configuration
Performing pre-upgrade checks
Starting Harbor upgrade
[=] Shutting down Harbor
[=] Migrating Harbor data
[=] Finished migrating Harbor data
[=] Migrating Harbor configuration
[=] Finished migrating Harbor configuration
[=] Importing project data into Admiral
[=] Finished importing project data into Admiral
[=] Mapping project data into Harbor
[=] Finished mapping project data into Harbor
Harbor upgrade complete
Starting Harbor
Enabling and starting Admiral and Harbor path startup
Upgrade script complete. Exiting.

image
Even placementzone got placed here.Newly added VCHs are not getting duplicated.

@lgayatri
Copy link
Author

847.zip

@gmuleshkov
Copy link

This is expected behavior. In VIC 1.2 the data model is change compared to 1.1
Here I suppose that the case is the following:

  1. Before upgrade there were 2 Placements pointing to the same Placement zone
  2. After upgrade in this case a new placement is created in order to match the new relation between placement-> placement zone . In VIC 1.2 is it 1:1. In vic 1.1 the relation was one to many.
    In VIC 1.2 the clusters are actually placement-zones.

@sergiosagu
Copy link

Closing it as per @gmuleshkov 's comment.

@andrewtchin
Copy link
Contributor

@gmuleshkov @sergiosagu do we need to document that the user needs to manually remove these?
cc @stuclem

@stuclem
Copy link
Contributor

stuclem commented Sep 22, 2017

@gmuleshkov is it correct to say that this occurs if you added the same VCH to two placement zones in 1.1.1? Thanks!

@stuclem stuclem reopened this Sep 22, 2017
@stuclem stuclem changed the title Post OVA upgrade there are duplicate VCHs in admiral Document that after OVA upgrade there are duplicate VCHs in admiral Sep 22, 2017
@stuclem stuclem self-assigned this Sep 22, 2017
@stuclem stuclem added product/admiral Related to the vSphere Integrated Containers Managment Portal product/ova Related to the OVA packaging of vSphere Integrated Containers area/pub Published documentation for end-users area/pub/vsphere Published documentation for vSphere administrators labels Sep 22, 2017
@sergiosagu
Copy link

is it correct to say that this occurs if you added the same VCH to two placement zones in 1.1.1?

@stuclem / @andrewtchin - That's correct. And if needed, the user can manually remove the duplicated ones.

@stuclem
Copy link
Contributor

stuclem commented Sep 27, 2017

@sergiosagu does it matter which one, or are they identical?

@stuclem
Copy link
Contributor

stuclem commented Sep 27, 2017

Reopening for doc.

@stuclem stuclem reopened this Sep 27, 2017
@sergiosagu
Copy link

@stuclem - It doesn't really matter as long as they belong to the same project. Leaving one instance per project will be enough.

@stuclem
Copy link
Contributor

stuclem commented Sep 27, 2017

OK thanks

@stuclem
Copy link
Contributor

stuclem commented Sep 27, 2017

@lgayatri can you please describe the steps that you took in 1.1.1 before the upgrade, that led to these duplicate VCHs appearing in 1.2? I cannot reproduce it. But that said, I don't really know much about placements, placement zones, and projects in Management Portal / Admiral 1.1, so I'm obviously doing something wrong in 1.1. Thanks!

@stuclem
Copy link
Contributor

stuclem commented Sep 27, 2017

@sergiosagu, I'm still trying to get my head around @gmuleshkov 's comment above, and placements in general. So, can you please help with the following questions?:

  • In 1.1, a placement zone is a cluster of VCHs/Docker hosts, right?
  • In 1.1, a placement is .... what exactly? The association of a VCH/placement zone with a project?
  • In 1.1, when you provision a container from a template, you provision it into a project. In this way it is deployed on the VCH/placement zone that is associated with that project, or potentially on one of several VCHs that are associated with that project.
  • In 1.2 is the concept of placements and placement zones just invisible to the users, or is it completely replaced by the fact that you add VCHs directly to projects?
  • Are Admiral 1.1 projects migrated into 1.2 projects, like Harbor 1.1 projects? I have never managed to make an Admiral 1.1 project that has migrated, probably because I don't create them properly in 1.1.
  • If the idea of placement zones is completely gone in 1.2, do you have to manually reassign VCHs to projects after upgrading to 1.2, or do the project/VCH associations carry over into 1.2 projects?

I am trying to understand how objects in 1.1 map to objects in 1.2, with a view to updating/expanding/improving https://vmware.github.io/vic-product/assets/files/html/1.2/vic_vsphere_admin/upgrade_data.html and describing what post-upgrade tasks have to be done manually. So, understanding (finally) how all of this works in 1.1 is definitely relevant to what I need to write up for 1.2.

Thanks in advance!

@stuclem
Copy link
Contributor

stuclem commented Sep 28, 2017

@sergiosagu I added a new topic, Tasks to Perform After Upgrading the vSphere Integrated Containers Appliance, in 3f6859a, which includes an item about these duplicate VCHs. Can you please take a look and comment in PR #868? Thanks!

@stuclem
Copy link
Contributor

stuclem commented Oct 3, 2017

Reviewed by @sergiosagu via Slack.

@stuclem stuclem closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pub/vsphere Published documentation for vSphere administrators area/pub Published documentation for end-users product/admiral Related to the vSphere Integrated Containers Managment Portal product/ova Related to the OVA packaging of vSphere Integrated Containers
Projects
None yet
Development

No branches or pull requests

5 participants