tampler commented on issue #8218:
URL: https://github.com/apache/cloudstack/issues/8218#issuecomment-1817477503
@GutoVeronezi The second issue is idempotence. If I try to reinstall ACS
from binaries after uninstalling and removing the previous run, ACS
`management` won't upload files to `/etc/cloudstack/management` and will fail
on post-install config.
Example:
```
bku@hyp0:~/install/419$ python3 --version
Python 3.10.12
```
```
bku@hyp0:~/install/419$ ls
cloudstack-agent_4.19.0.0-snapshot.20231117~xenial_all.deb
cloudstack-management_4.19.0.0-snapshot.20231117~xenial_all.deb
cloudstack-common_4.19.0.0-snapshot.20231117~xenial_all.deb
cloudstack-ui_4.19.0.0-snapshot.20231117~xenial_all.deb
```
```
bku@hyp0:~/install/419$ sudo dpkg -i
cloudstack-common_4.19.0.0-snapshot.20231117~xenial_all.deb
cloudstack-ui_4.19.0.0-snapshot.20231117~xenial_all.deb
cloudstack-management_4.19.0.0-snapshot.20231117~xenial_all.deb
Selecting previously unselected package cloudstack-common.
(Reading database ... 139508 files and directories currently installed.)
Preparing to unpack
cloudstack-common_4.19.0.0-snapshot.20231117~xenial_all.deb ...
Compiling '/usr/lib/python3/dist-packages/cloudutils/utilities.py'...
Setting up cloudstack-ui (4.19.0.0-snapshot.20231117~xenial) ...
Setting up cloudstack-management (4.19.0.0-snapshot.20231117~xenial) ...
usermod: no changes
chmod: cannot access '/etc/cloudstack/management/db.properties': No such
file or directory
dpkg: error processing package cloudstack-management (--install):
installed cloudstack-management package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
cloudstack-management
```
```
bku@hyp0:~/install/419$ sudo apt install -f -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up cloudstack-management (4.19.0.0-snapshot.20231117~xenial) ...
usermod: no changes
chmod: cannot access '/etc/cloudstack/management/db.properties': No such
file or directory
dpkg: error processing package cloudstack-management (--configure):
installed cloudstack-management package post-installation script subprocess
returned error exit status 1
Errors were encountered while processing:
cloudstack-management
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
So you can't seamlessly reinstall ACS from binaries
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]