GitHub user davift edited a discussion: [Ubuntu 26.04] Soft-error on 
cloudstack-setup-databases at fresh install

Would that be a portability issue that has to be addressed for Ubuntu 26.04 
(`Defaults:cloud !requiretty`)?

```
ubuntu@acs:~$ sudo cloudstack-setup-databases cloud:dft.wiki@localhost 
--schema-only
/etc/sudoers.d/cloudstack:23:17: unknown setting: 'requiretty'
Defaults:cloud !requiretty
                ^~~~~~~~~~
Mysql user name:cloud                                                           
[ OK ]
Mysql user password:******                                                      
[ OK ]
Mysql server ip:localhost                                                       
[ OK ]
Mysql server port:3306                                                          
[ OK ]
Checking Cloud database files ...                                               
[ OK ]
Checking local machine hostname ...                                             
[ OK ]
Checking SELinux setup ...                                                      
[ OK ]
Detected local IP address as 10.154.196.182, will use as cluster management 
server node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties                              
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql               
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql       
[ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql                
[ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql                   
[ OK ]
Processing encryption ...                                                       
[ OK ]
Finalizing setup ...                                                            
[ OK ]

CloudStack has successfully initialized database, you can check your database 
configuration in /etc/cloudstack/management/db.properties

ubuntu@acs:~$ sudo cloudstack-setup-management
/etc/sudoers.d/cloudstack:23:17: unknown setting: 'requiretty'
Defaults:cloud !requiretty
                ^~~~~~~~~~
Starting to configure CloudStack Management Server:
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!
Please ensure ports 8080, 8250, 8443, and 9090 are opened and not firewalled 
for the management server and not in use by other processes on this host.
```

Note: It does not prevent ACS from working in any way, but it may be the case 
of removing that unnecessary line from the sudoers configuration:

```
sudo sed -i 's/^Defaults:cloud !requiretty/# Defaults:cloud !requiretty/' 
/etc/sudoers.d/cloudstack
```

GitHub link: https://github.com/apache/cloudstack/discussions/13372

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to