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

arcas file is empty? #26

Closed
carlosonunez-vmw opened this issue May 19, 2022 · 11 comments
Closed

arcas file is empty? #26

carlosonunez-vmw opened this issue May 19, 2022 · 11 comments
Labels
need_more_info Further information is requested

Comments

@carlosonunez-vmw
Copy link
Contributor

carlosonunez-vmw commented May 19, 2022

Reference Architecture: TKO on vSphere backed by VDS

What Happened?

I tried to run the command described in the README:

arcas --env vsphere --file /tmp/arcas.json --avi_configuration --tkg_mgmt_configuration --shared_service_configuration --workload_preconfig --workload_deploy --deploy_extentions

but it does nothing because the arcas tool that the command above is using is an empty file:

root@photon-machine [ ~ ]# file $(which arcas)
/usr/bin/arcas: empty

What Was Expected?

For something to happen

How to Reproduce

  1. Create an Arcas appliance from the OVA
  2. SSH in
  3. Run file $(which arcas)

Versions

Version: 1.2.0.50
Build: 19794220
@tasmiya-bano
Copy link
Contributor

@carlosonunez-vmw Could you please confirm if you generated the json file for your environment using the steps mentioned in the document - https://github.com/vmware-tanzu/service-installer-for-vmware-tanzu/blob/main/docs/product/release/vSphere%20-%20Backed%20by%20VDS/TKGm/TKOonVsphereVDStkg.md (Step 4 in "Deploy Tanzu for Kubernetes Operations" section) ?

SIVT User Interface saves the json file to "/opt/vmware/arcas/src/vsphere-dvs-tkgm.json" location [OR] if you have created this file manually, you need to copy it SIVT and provide the path in above command you have mentioned.

Hope this helped, let me know if you have further queries.

@tasmiya-bano tasmiya-bano added the need_more_info Further information is requested label May 19, 2022
@carlosonunez-vmw
Copy link
Contributor Author

carlosonunez-vmw commented May 19, 2022 via email

@tasmiya-bano
Copy link
Contributor

Could you please cross check the name of the file you created ?

Looks like it was not saved with "arcas.json" file name.

@carlosonunez-vmw
Copy link
Contributor Author

carlosonunez-vmw commented May 19, 2022 via email

@tasmiya-bano
Copy link
Contributor

tasmiya-bano commented May 20, 2022

yes, SIVT OVA doesn't have arcas binary. arcas is running as service in SIVT OVA and we have followed CLI based automation.

You can refer /opt/vmware/arcas/src/cli.py file for more details.

@carlosonunez-vmw
Copy link
Contributor Author

carlosonunez-vmw commented May 20, 2022 via email

@rashikwal
Copy link

rashikwal commented May 24, 2022

@carlosonunez-vmw "arcas" is a service running inside the SIVT OVA. You can type "arcas --help" command to get more idea on the available flags.
For starters, "arcas --env <vsphere/vcf/vmc> --file complete-path-to-the-input-json-file" are the mandatory flags to be provided by the user. We also have a UI that can help in generation of the input file.

To check the status of arcas service, you can run "systemctl status arcas.service" on your SIVT ova.
We can connect offline if you need more clarity on the design of the product.

@carlosonunez-vmw
Copy link
Contributor Author

It seems like there might be some confusion around what I'm reporting. Here's a GIF that explains what I'm running into.

TL;DR: Service Installer guides state to use arcas after the JSON has been created, but the arcas file is empty.

arcas-issue-26

@carlosonunez-vmw
Copy link
Contributor Author

Status of the arcas SystemD unit:

* arcas.service - Arcas Service
   Loaded: loaded (/etc/systemd/system/arcas.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2022-05-19 02:57:29 UTC; 5 days ago
 Main PID: 575 (python3)
    Tasks: 5 (limit: 4915)
   Memory: 65.4M
   CGroup: /system.slice/arcas.service
           `-575 /usr/bin/python3 /opt/vmware/arcas/src/python_server.py

May 23 23:50:54 photon-machine python3[575]: 2022-05-23 23:50:54,806 INFO     precheck.py:1036 Successfully retrieved ORG ID details for token: W3p9mzZw_KFEs52tqrYA4soK7puGu2HLNNdCROBXFAjN3VNQnr6SFnVCJJJfPZ99
May 23 23:50:54 photon-machine python3[575]: 23:50:54.806 INFO     precheck.py:1036 Successfully retrieved ORG ID details for token: W3p9mzZw_KFEs52tqrYA4soK7puGu2HLNNdCROBXFAjN3VNQnr6SFnVCJJJfPZ99
May 23 23:50:56 photon-machine python3[575]: 2022-05-23 23:50:56,146 INFO     list_reources.py:1476 Found below cluster groups
May 23 23:50:56 photon-machine python3[575]: 23:50:56.146 INFO     list_reources.py:1476 Found below cluster groups
May 23 23:50:56 photon-machine python3[575]: 2022-05-23 23:50:56,148 INFO     list_reources.py:1477 ['acme-fitness', 'acme-fitness-catalog', 'andrew-amber-tko', 'arobert', 'azdsgroup', 'becca', 'bstein-tko-tkg-cluster-group', 'bzhtux', 'cwaid-359', 'defa>
May 23 23:50:56 photon-machine python3[575]: 23:50:56.148 INFO     list_reources.py:1477 ['acme-fitness', 'acme-fitness-catalog', 'andrew-amber-tko', 'arobert', 'azdsgroup', 'becca', 'bstein-tko-tkg-cluster-group', 'bzhtux', 'cwaid-359', 'default', 'dha->
May 23 23:51:03 photon-machine python3[575]: 2022-05-23 23:51:03,240 INFO     precheck.py:887 Logging into MarketPlace using provided refresh token...
May 23 23:51:03 photon-machine python3[575]: 23:51:03.240 INFO     precheck.py:887 Logging into MarketPlace using provided refresh token...
May 23 23:51:03 photon-machine python3[575]: 2022-05-23 23:51:03,745 INFO     precheck.py:908 Marketplace refresh token validation Passed
May 23 23:51:03 photon-machine python3[575]: 23:51:03.745 INFO     precheck.py:908 Marketplace refresh token validation Passed

@carlosonunez-vmw
Copy link
Contributor Author

carlosonunez-vmw commented May 24, 2022

I was able to work around this by doing the below from inside of the SIVT:

pip install /opt/vmware/arcas

However, the documentation suggests that the arcas pip should be installed once the appliance has been deployed. Given this, I'm going to leave this issue open.

@sunshetty
Copy link
Contributor

This issue is addressed in SIVT 2.0 release. Closing the issue.

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

No branches or pull requests

4 participants