cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

cloudstack-sysvmadm - /etc/rc.d/init.d/functions: No such file or directory

Open dR3b opened this issue 1 year ago • 10 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
cloudstack-sysvmadm
CLOUDSTACK VERSION
CloudStack 4.19.0.1
OS / ENVIRONMENT
Ubuntu 22.04
SUMMARY
STEPS TO REPRODUCE

Start the command: /usr/bin/cloudstack-sysvmadm

root@nuc1:~# cloudstack-sysvmadm
/usr/bin/cloudstack-sysvmadm: line 21: /etc/rc.d/init.d/functions: No such file or directory

  The tool for stopping/starting running system vms and domain routers

  Usage: cloudstack-sysvmadm: [-d] [-u] [-p] [-m] [-s] [-r] [-a] [-n] [-t] [-l] [-z] [-v] [-i] [-j]

   -d - cloud DB server ip address, defaulted to localhost if not specified
   -u - user name to access cloud DB, defaulted to "root" if not specified
   -p - cloud DB user password, defaulted to no password if not specified

EXPECTED RESULTS
No error

dR3b avatar Apr 29 '24 07:04 dR3b

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Apr 29 '24 07:04 boring-cyborg[bot]

@dR3b sounds like a dependency is missing, or is this file phased out in a maintenance release of ubuntu?

DaanHoogland avatar Apr 29 '24 07:04 DaanHoogland

I think /etc/rc.d (SysVinit) was only available on Redhat and with Systemd it is obsolete.

dR3b avatar Apr 29 '24 08:04 dR3b

@dR3b this is indeed an issue, but the script, cloudstack-sysvmadm, is not maintained which makes this a documentation issue. If you care you can fix the code or the docs and create a PR for it.

DaanHoogland avatar May 02 '24 12:05 DaanHoogland

@DaanHoogland How can I control the system-vms (router proxy)?

dR3b avatar May 02 '24 12:05 dR3b

depends on what you want to do. If you just want to make sure a new configured template is being used, you can restart the network with cleanup.

there is also https://cloudstack.apache.org/api/apidocs-4.19/apis/stopRouter.html which you can call from the UI or a tool like cmk.

DaanHoogland avatar May 02 '24 12:05 DaanHoogland

I had a error with a script on my virtual router:

dns_check.py Missing entries for VMs in /etc/hosts

(In the meantime, I have already reinstalled the Management Server several times)

I will look into the sources 👍🏼

dR3b avatar May 02 '24 12:05 dR3b

I had a error with a script on my virtual router:

dns_check.py Missing entries for VMs in /etc/hosts

this is a typical casde for restart network with cleanup (https://cloudstack.apache.org/api/apidocs-4.19/apis/restartNetwork.html)

DaanHoogland avatar May 02 '24 13:05 DaanHoogland

Thanks!

dR3b avatar May 02 '24 13:05 dR3b

np, tell us how you fare.

DaanHoogland avatar May 03 '24 06:05 DaanHoogland

@dR3b do you care to test the revised script from #9200 please?

DaanHoogland avatar Sep 04 '24 16:09 DaanHoogland

fixed in #9200

DaanHoogland avatar Sep 18 '24 11:09 DaanHoogland

@DaanHoogland Looks good! Thanks

dR3b avatar Sep 18 '24 13:09 dR3b