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

Error(s) while trying to perform registry search (1.4RC1) #1624

Closed
SemperFu opened this issue Apr 19, 2018 · 12 comments
Closed

Error(s) while trying to perform registry search (1.4RC1) #1624

SemperFu opened this issue Apr 19, 2018 · 12 comments
Labels
product/ova Related to the OVA packaging of vSphere Integrated Containers source/customer Reported by a customer, directly or via an intermediary

Comments

@SemperFu
Copy link

SemperFu commented Apr 19, 2018

Bug Report Basic Information

REQUIRED:

  • vCenter Server version: 6.7
  • Embedded or external PSC: Embedded
  • Filename of the OVA you deployed: vic-v1.4.0-rc1-4516-9894ccaa.ova
  • Does the VIC appliance recieve configuration by DHCP? Static IP
  • What stage of the Appliance Lifecycle is the VIC appliance in? Running Stage
  • Attach the VIC appliance support bundle : Attached. Not sure if it will show anything

Bug Report Detailed Information

  • What operation was being performed when the failure was noticed?
    Searching for anything in the repository shows an error for the local registry.

  • Provide information from the Support Information section of the appropriate Appliance Lifecycle stage:
    Running

  • Provide additional detail as necessary:

Error(s) while trying to perform registry search: [Service https://v:8282/v2/_catalog returned error 404 for GET. id 33252 message Service not found: http://127.0.0.1/v2/_catalog]

Browsing directly to that url I get

{"message":"Service not found: http://127.0.0.1/v2/_catalog","statusCode":404,"documentKind":"com:vmware:xenon:common:ServiceErrorResponse","errorCode":-2147483648}

s1
container-logs.zip

@gmuleshkov
Copy link

I see that the search is to http://127.0.0.1/v2/_catalog. In theory it is not possible to have a registry here. Admiral is running in container and 127.0.0.1 is actually the container.
Did you add any registries or you had just the default at the time when you see the error?
Also in case you added some registries was was added as global and as project registries?
cc @shadjiiski @AntonioFilipov

@shadjiiski
Copy link

Could you also provide the admiral logs (/storage/log/admiral directory on OVA machine) and the contents of the /storage/data/admiral/custom.conf file (again on the OVA machine)? Please leave a note, if you obfuscate any addresses/hostnames

@SemperFu
Copy link
Author

@gmcelhoe I did not add any registries but didn't have any errors searching before 1.4RC1. My searches work fine but figure I'd report it.

@shadjiiski I have attached the log and conf unmodified. Just zipped them up.

VMware.zip

@shadjiiski
Copy link

@SemperFu thanks for the reply! Your configuration seems to be messed up - the harbor.tab.url property in your custom.conf file points to the address of your Admiral (Management Portal) instance https://{your-hostname}:8282. It should be set to whatever the address of your Harbor (Container Registry) instance is - probably https://{your-hostname}:443

When you installed the OVA, did you do any additional configuration during the "Customize template" step of the "Deploy OVF Template" workflow? I'm interested in whether you have changed the default Registry port from 443 to 8282. If not, then there probably is an issue with the installer (though I deployed the same OVA with defaults and could not reproduce the issue) cc @andrewtchin

@andrewtchin
Copy link
Contributor

@shadjiiski The canonical way to gather logs from the VIC appliance is the appliance support bundle - please let me know if there are additional files that need to be gathered by this script - https://github.com/vmware/vic-product/blob/master/installer/docs/SUPPORT.md#appliance-support-bundle
@SemperFu depending on your answer to @shadjiiski and if this still needs investigation, please provide the appliance support bundle - this is different from the container log bundle in your original post

@andrewtchin andrewtchin added status/need-info Additional information is needed to make progress status/needs-triage The issue needs to be evaluated and metadata updated team/lifecycle labels Apr 23, 2018
@SemperFu
Copy link
Author

@shadjiiski I didn't modify anything in the installer. I believe the only difference from previous was using HTML5 vs the Web client for deploying it. I don't really have anything on it. I'll try and redeploy it today to see if it still does it.

@SemperFu
Copy link
Author

SemperFu commented Apr 23, 2018

@shadjiiski The default registry port is set to 8282 from from the OVA deployment. If this is supposed to be 443 then the installer should be changed. The default management port is also 8282. Can they be on the same or does this conflict?

image

@andrewtchin
Copy link
Contributor

@SemperFu the HTML5 client is not supported for deploying the VIC appliance. If you used the HTML5 client, please redeploy following the documentation.

https://vmware.github.io/vic-product/assets/files/html/1.3/vic_vsphere_admin/deploy_vic_appliance.html

Use the Flex-based vSphere Web Client to deploy the appliance. You cannot deploy OVA files from the HTML5 vSphere Client or from the legacy Windows client.

@SemperFu
Copy link
Author

@andreiw Yeah that seems to be it. I've been redeploying it over and over for different things I didn't think about the client. That said, changing the port to 443 on HTML5 and it seems to deploy and work the same as deployment on Flex.

@andrewtchin
Copy link
Contributor

Cool thanks as far as I can tell Customize Template under Deploy OVF/OVA that we need is still unsupported in the HTML5 client
https://docs.vmware.com/en/VMware-vSphere/6.5/rn/vsphere-client-65-html5-functionality-support.html

@ghost ghost reopened this Apr 24, 2018
@ghost
Copy link

ghost commented Apr 24, 2018

This is due to an ovf key collision in the ovf template for the vic appliance.

@ghost ghost self-assigned this Apr 24, 2018
@ghost ghost added product/ova Related to the OVA packaging of vSphere Integrated Containers source/customer Reported by a customer, directly or via an intermediary and removed status/need-info Additional information is needed to make progress status/needs-triage The issue needs to be evaluated and metadata updated labels Apr 24, 2018
@ghost ghost added this to the Sprint 30 Lifecycle milestone Apr 24, 2018
@ghost ghost mentioned this issue Apr 24, 2018
6 tasks
@ghost
Copy link

ghost commented Apr 24, 2018

The root cause of this problem has been fixed in #1642, but please continue to refer to the vSphere documantation for supported ovf operations in the html5 client.

@ghost ghost closed this as completed in #1642 Apr 24, 2018
ghost pushed a commit that referenced this issue Apr 24, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes #1624.
zjs pushed a commit to zjs/vic-product that referenced this issue Jun 20, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.
zjs pushed a commit to zjs/vic-product that referenced this issue Jun 20, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.

(cherry picked from commit 7c07bfe)
zjs pushed a commit to zjs/vic-product that referenced this issue Jun 22, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.

(cherry picked from commit 7c07bfe)
zjs pushed a commit to zjs/vic-product that referenced this issue Jun 23, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.

(cherry picked from commit 7c07bfe)
zjs pushed a commit to zjs/vic-product that referenced this issue Jun 23, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.

(cherry picked from commit 7c07bfe)
zjs pushed a commit that referenced this issue Jun 23, 2018
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes #1624.

(cherry picked from commit 7c07bfe)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/ova Related to the OVA packaging of vSphere Integrated Containers source/customer Reported by a customer, directly or via an intermediary
Projects
None yet
Development

No branches or pull requests

4 participants