Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Hi David, that should be a wrong clue - command.properties is NOT used starting from 4.9, as all default roles are now in the cloud.roles table, and any custom roles can be migrated via the migration script Can you check content of your cloud.roles and cloud.role_permissions tables ? in the later one, you should have hundreds of entries, first one only a few roles. Is your global setting *'dynamic.apichecker.enabled'* set to 'true'? This is needed to skip checking for command.properties and instead rely on the role/role_permissions tables. Try that above ^^^ and let me know. Best, On Wed, 26 May 2021 at 14:15, Rohit Yadav wrote: > Hi David, > > The static-roles based commands.properties is deprecated now, while we > still support it we don't ship a default settings/file with CloudStack now. > Instead we've moved to dynamic roles, please see > http://docs.cloudstack.apache.org/en/4.13.1.0/adminguide/accounts.html#using-dynamic-roles > > > Regards. > > > From: David Larsen > Sent: Wednesday, May 26, 2021 13:21 > To: users@cloudstack.apache.org > Subject: SV: Best practice moving cloudstack 4.13.0.1 management server > from centos 6.10 to Ubuntu 18.04 LTS > > Hi > > Sorry for late reply. > I figured out the reason why I couldn't log in to the GUI on the new > ubuntu server. > Seems like I need to copy the old commands.properties file from the old > centos 6.10 server to the new ubuntu server... (?) > I thought cloudstack 4.15 didn't use it anymore, especially since it is > not included in the 4.13-4.15 installation? > > Does anyone know which setting(s) in the commands.properties file I need > to look into? > > > > Med vennlig hilsen > > David Larsen > Senior systemkonsulent > > > ADCOM MOLDE, IT Data AS > Fabrikkvegen 13 | 6415 Molde > david.lar...@adcom.no | www.adcom.no<http://www.adcom.no> > > > > Følg oss på sosiale medier: > Tenk på miljøet før du skriver ut denne eposten > > > -----Opprinnelig melding- > Fra: David Larsen > Sendt: lørdag 27. mars 2021 00:39 > Til: users@cloudstack.apache.org > Emne: RE: Best practice moving cloudstack 4.13.0.1 management server from > centos 6.10 to Ubuntu 18.04 LTS > > Ok, thanks. > I will try cli tool tomorrow. > > > > > > Sendt fra min Galaxy > > > > ---- Opprinnelig melding ---- > Fra: Alireza Eskandari > Dato: 26.03.2021 22:52 (GMT+01:00) > Til: users@cloudstack.apache.org > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from > centos 6.10 to Ubuntu 18.04 LTS > > If you can use CS from CloudMonkey (CLI tool), I can say that it is > working fine but you have some problems with GUI. > > > > > > On Sat, Mar 27, 2021 at 2:16 AM David Larsen > wrote: > > > Yes, have. Many times. Also different browsers. > > > > Management server and mysql server have same ip as in production, but > > in isolated environment. > > > > > > > > > > > > Sendt fra min Galaxy > > > > > > > > Opprinnelig melding > > Fra: Alireza Eskandari > > Dato: 26.03.2021 22:41 (GMT+01:00) > > Til: users@cloudstack.apache.org > > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server > > from centos 6.10 to Ubuntu 18.04 LTS > > > > If you are trying to login via the web gui, have you tried to clear > > your browser cache? > > I recommend testing your browser private mode. > > > > On Sat, Mar 27, 2021 at 1:54 AM David Larsen > > wrote: > > > > > Hi > > > > > > I have a working cloudstack 4.13.01 setup with two servers, one > > cloudstack > > > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > > > > > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > > > 1. Ubuntu 18.04 running mysql 5.7 > > > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > > > > > When i restore mysql data from the old mysql server and run > > > cloudstack database setup without deploy as root and finish > > > cloudstack setup, everething start up as normal and i get the > > > cloudstack login in > > browser... > > > But i cannot log in... According to the cloudstack management log, > > > admin > > is > > > successfully logged in... (?) > > > > > > What is missing? > > > > > > I thought i might be the difference i mysql version, so i installed > > > a "new" centos 6.10 with mysql 5.1... But after a successful sql > > >
Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Hi David, The static-roles based commands.properties is deprecated now, while we still support it we don't ship a default settings/file with CloudStack now. Instead we've moved to dynamic roles, please see http://docs.cloudstack.apache.org/en/4.13.1.0/adminguide/accounts.html#using-dynamic-roles Regards. From: David Larsen Sent: Wednesday, May 26, 2021 13:21 To: users@cloudstack.apache.org Subject: SV: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS Hi Sorry for late reply. I figured out the reason why I couldn't log in to the GUI on the new ubuntu server. Seems like I need to copy the old commands.properties file from the old centos 6.10 server to the new ubuntu server... (?) I thought cloudstack 4.15 didn't use it anymore, especially since it is not included in the 4.13-4.15 installation? Does anyone know which setting(s) in the commands.properties file I need to look into? Med vennlig hilsen David Larsen Senior systemkonsulent ADCOM MOLDE, IT Data AS Fabrikkvegen 13 | 6415 Molde david.lar...@adcom.no | www.adcom.no<http://www.adcom.no> Følg oss på sosiale medier: Tenk på miljøet før du skriver ut denne eposten -Opprinnelig melding- Fra: David Larsen Sendt: lørdag 27. mars 2021 00:39 Til: users@cloudstack.apache.org Emne: RE: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS Ok, thanks. I will try cli tool tomorrow. Sendt fra min Galaxy Opprinnelig melding Fra: Alireza Eskandari Dato: 26.03.2021 22:52 (GMT+01:00) Til: users@cloudstack.apache.org Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS If you can use CS from CloudMonkey (CLI tool), I can say that it is working fine but you have some problems with GUI. On Sat, Mar 27, 2021 at 2:16 AM David Larsen wrote: > Yes, have. Many times. Also different browsers. > > Management server and mysql server have same ip as in production, but > in isolated environment. > > > > > > Sendt fra min Galaxy > > > > Opprinnelig melding > Fra: Alireza Eskandari > Dato: 26.03.2021 22:41 (GMT+01:00) > Til: users@cloudstack.apache.org > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server > from centos 6.10 to Ubuntu 18.04 LTS > > If you are trying to login via the web gui, have you tried to clear > your browser cache? > I recommend testing your browser private mode. > > On Sat, Mar 27, 2021 at 1:54 AM David Larsen > wrote: > > > Hi > > > > I have a working cloudstack 4.13.01 setup with two servers, one > cloudstack > > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > > 1. Ubuntu 18.04 running mysql 5.7 > > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > > > When i restore mysql data from the old mysql server and run > > cloudstack database setup without deploy as root and finish > > cloudstack setup, everething start up as normal and i get the > > cloudstack login in > browser... > > But i cannot log in... According to the cloudstack management log, > > admin > is > > successfully logged in... (?) > > > > What is missing? > > > > I thought i might be the difference i mysql version, so i installed > > a "new" centos 6.10 with mysql 5.1... But after a successful sql > > restore > and > > cloudstack install, i was surprised i got the same symptoms with login. > > > > Then i i though i might be something with ubuntu, so i installed the > > latest centos 7 as cloudstack management server... Samme result... I > can't > > log in. No error unless i try with wrong password... Then it says > > wrong > > password...(?) i have tried with admin users and standard users. > > Same result. > > > > I can mysql server data and it looks the same as the one in production. > > All usernames are the same.. > > > > What am i missing? > > Is there any api.Key or some config files i need to be aware... And > > copy to the new management server? > > > > -David > > > > Sendt fra min Galaxy > > > > >
SV: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Hi Sorry for late reply. I figured out the reason why I couldn't log in to the GUI on the new ubuntu server. Seems like I need to copy the old commands.properties file from the old centos 6.10 server to the new ubuntu server... (?) I thought cloudstack 4.15 didn't use it anymore, especially since it is not included in the 4.13-4.15 installation? Does anyone know which setting(s) in the commands.properties file I need to look into? Med vennlig hilsen David Larsen Senior systemkonsulent ADCOM MOLDE, IT Data AS Fabrikkvegen 13 | 6415 Molde david.lar...@adcom.no | www.adcom.no Følg oss på sosiale medier: Tenk på miljøet før du skriver ut denne eposten -Opprinnelig melding- Fra: David Larsen Sendt: lørdag 27. mars 2021 00:39 Til: users@cloudstack.apache.org Emne: RE: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS Ok, thanks. I will try cli tool tomorrow. Sendt fra min Galaxy Opprinnelig melding Fra: Alireza Eskandari Dato: 26.03.2021 22:52 (GMT+01:00) Til: users@cloudstack.apache.org Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS If you can use CS from CloudMonkey (CLI tool), I can say that it is working fine but you have some problems with GUI. On Sat, Mar 27, 2021 at 2:16 AM David Larsen wrote: > Yes, have. Many times. Also different browsers. > > Management server and mysql server have same ip as in production, but > in isolated environment. > > > > > > Sendt fra min Galaxy > > > > Opprinnelig melding > Fra: Alireza Eskandari > Dato: 26.03.2021 22:41 (GMT+01:00) > Til: users@cloudstack.apache.org > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server > from centos 6.10 to Ubuntu 18.04 LTS > > If you are trying to login via the web gui, have you tried to clear > your browser cache? > I recommend testing your browser private mode. > > On Sat, Mar 27, 2021 at 1:54 AM David Larsen > wrote: > > > Hi > > > > I have a working cloudstack 4.13.01 setup with two servers, one > cloudstack > > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > > 1. Ubuntu 18.04 running mysql 5.7 > > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > > > When i restore mysql data from the old mysql server and run > > cloudstack database setup without deploy as root and finish > > cloudstack setup, everething start up as normal and i get the > > cloudstack login in > browser... > > But i cannot log in... According to the cloudstack management log, > > admin > is > > successfully logged in... (?) > > > > What is missing? > > > > I thought i might be the difference i mysql version, so i installed > > a "new" centos 6.10 with mysql 5.1... But after a successful sql > > restore > and > > cloudstack install, i was surprised i got the same symptoms with login. > > > > Then i i though i might be something with ubuntu, so i installed the > > latest centos 7 as cloudstack management server... Samme result... I > can't > > log in. No error unless i try with wrong password... Then it says > > wrong > > password...(?) i have tried with admin users and standard users. > > Same result. > > > > I can mysql server data and it looks the same as the one in production. > > All usernames are the same.. > > > > What am i missing? > > Is there any api.Key or some config files i need to be aware... And > > copy to the new management server? > > > > -David > > > > Sendt fra min Galaxy > > > > >
RE: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Ok, thanks. I will try cli tool tomorrow. Sendt fra min Galaxy Opprinnelig melding Fra: Alireza Eskandari Dato: 26.03.2021 22:52 (GMT+01:00) Til: users@cloudstack.apache.org Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS If you can use CS from CloudMonkey (CLI tool), I can say that it is working fine but you have some problems with GUI. On Sat, Mar 27, 2021 at 2:16 AM David Larsen wrote: > Yes, have. Many times. Also different browsers. > > Management server and mysql server have same ip as in production, but in > isolated environment. > > > > > > Sendt fra min Galaxy > > > > Opprinnelig melding > Fra: Alireza Eskandari > Dato: 26.03.2021 22:41 (GMT+01:00) > Til: users@cloudstack.apache.org > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from > centos 6.10 to Ubuntu 18.04 LTS > > If you are trying to login via the web gui, have you tried to clear your > browser cache? > I recommend testing your browser private mode. > > On Sat, Mar 27, 2021 at 1:54 AM David Larsen > wrote: > > > Hi > > > > I have a working cloudstack 4.13.01 setup with two servers, one > cloudstack > > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > > 1. Ubuntu 18.04 running mysql 5.7 > > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > > > When i restore mysql data from the old mysql server and run cloudstack > > database setup without deploy as root and finish cloudstack setup, > > everething start up as normal and i get the cloudstack login in > browser... > > But i cannot log in... According to the cloudstack management log, admin > is > > successfully logged in... (?) > > > > What is missing? > > > > I thought i might be the difference i mysql version, so i installed a > > "new" centos 6.10 with mysql 5.1... But after a successful sql restore > and > > cloudstack install, i was surprised i got the same symptoms with login. > > > > Then i i though i might be something with ubuntu, so i installed the > > latest centos 7 as cloudstack management server... Samme result... I > can't > > log in. No error unless i try with wrong password... Then it says wrong > > password...(?) i have tried with admin users and standard users. Same > > result. > > > > I can mysql server data and it looks the same as the one in production. > > All usernames are the same.. > > > > What am i missing? > > Is there any api.Key or some config files i need to be aware... And copy > > to the new management server? > > > > -David > > > > Sendt fra min Galaxy > > > > >
Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
If you can use CS from CloudMonkey (CLI tool), I can say that it is working fine but you have some problems with GUI. On Sat, Mar 27, 2021 at 2:16 AM David Larsen wrote: > Yes, have. Many times. Also different browsers. > > Management server and mysql server have same ip as in production, but in > isolated environment. > > > > > > Sendt fra min Galaxy > > > > Opprinnelig melding > Fra: Alireza Eskandari > Dato: 26.03.2021 22:41 (GMT+01:00) > Til: users@cloudstack.apache.org > Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from > centos 6.10 to Ubuntu 18.04 LTS > > If you are trying to login via the web gui, have you tried to clear your > browser cache? > I recommend testing your browser private mode. > > On Sat, Mar 27, 2021 at 1:54 AM David Larsen > wrote: > > > Hi > > > > I have a working cloudstack 4.13.01 setup with two servers, one > cloudstack > > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > > 1. Ubuntu 18.04 running mysql 5.7 > > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > > > When i restore mysql data from the old mysql server and run cloudstack > > database setup without deploy as root and finish cloudstack setup, > > everething start up as normal and i get the cloudstack login in > browser... > > But i cannot log in... According to the cloudstack management log, admin > is > > successfully logged in... (?) > > > > What is missing? > > > > I thought i might be the difference i mysql version, so i installed a > > "new" centos 6.10 with mysql 5.1... But after a successful sql restore > and > > cloudstack install, i was surprised i got the same symptoms with login. > > > > Then i i though i might be something with ubuntu, so i installed the > > latest centos 7 as cloudstack management server... Samme result... I > can't > > log in. No error unless i try with wrong password... Then it says wrong > > password...(?) i have tried with admin users and standard users. Same > > result. > > > > I can mysql server data and it looks the same as the one in production. > > All usernames are the same.. > > > > What am i missing? > > Is there any api.Key or some config files i need to be aware... And copy > > to the new management server? > > > > -David > > > > Sendt fra min Galaxy > > > > >
RE: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Yes, have. Many times. Also different browsers. Management server and mysql server have same ip as in production, but in isolated environment. Sendt fra min Galaxy Opprinnelig melding Fra: Alireza Eskandari Dato: 26.03.2021 22:41 (GMT+01:00) Til: users@cloudstack.apache.org Emne: Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS If you are trying to login via the web gui, have you tried to clear your browser cache? I recommend testing your browser private mode. On Sat, Mar 27, 2021 at 1:54 AM David Larsen wrote: > Hi > > I have a working cloudstack 4.13.01 setup with two servers, one cloudstack > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > 1. Ubuntu 18.04 running mysql 5.7 > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > When i restore mysql data from the old mysql server and run cloudstack > database setup without deploy as root and finish cloudstack setup, > everething start up as normal and i get the cloudstack login in browser... > But i cannot log in... According to the cloudstack management log, admin is > successfully logged in... (?) > > What is missing? > > I thought i might be the difference i mysql version, so i installed a > "new" centos 6.10 with mysql 5.1... But after a successful sql restore and > cloudstack install, i was surprised i got the same symptoms with login. > > Then i i though i might be something with ubuntu, so i installed the > latest centos 7 as cloudstack management server... Samme result... I can't > log in. No error unless i try with wrong password... Then it says wrong > password...(?) i have tried with admin users and standard users. Same > result. > > I can mysql server data and it looks the same as the one in production. > All usernames are the same.. > > What am i missing? > Is there any api.Key or some config files i need to be aware... And copy > to the new management server? > > -David > > Sendt fra min Galaxy > >
Re: Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
If you are trying to login via the web gui, have you tried to clear your browser cache? I recommend testing your browser private mode. On Sat, Mar 27, 2021 at 1:54 AM David Larsen wrote: > Hi > > I have a working cloudstack 4.13.01 setup with two servers, one cloudstack > management running centos 6.10, and a mysql 5.1 running on centos 6.10. > > > I have build up a isolated environment with two Ubuntu 18.04 servers: > 1. Ubuntu 18.04 running mysql 5.7 > 2. Ubuntu 18.04 running cloudstack management 4.13.01 > > When i restore mysql data from the old mysql server and run cloudstack > database setup without deploy as root and finish cloudstack setup, > everething start up as normal and i get the cloudstack login in browser... > But i cannot log in... According to the cloudstack management log, admin is > successfully logged in... (?) > > What is missing? > > I thought i might be the difference i mysql version, so i installed a > "new" centos 6.10 with mysql 5.1... But after a successful sql restore and > cloudstack install, i was surprised i got the same symptoms with login. > > Then i i though i might be something with ubuntu, so i installed the > latest centos 7 as cloudstack management server... Samme result... I can't > log in. No error unless i try with wrong password... Then it says wrong > password...(?) i have tried with admin users and standard users. Same > result. > > I can mysql server data and it looks the same as the one in production. > All usernames are the same.. > > What am i missing? > Is there any api.Key or some config files i need to be aware... And copy > to the new management server? > > -David > > Sendt fra min Galaxy > >
Best practice moving cloudstack 4.13.0.1 management server from centos 6.10 to Ubuntu 18.04 LTS
Hi I have a working cloudstack 4.13.01 setup with two servers, one cloudstack management running centos 6.10, and a mysql 5.1 running on centos 6.10. I have build up a isolated environment with two Ubuntu 18.04 servers: 1. Ubuntu 18.04 running mysql 5.7 2. Ubuntu 18.04 running cloudstack management 4.13.01 When i restore mysql data from the old mysql server and run cloudstack database setup without deploy as root and finish cloudstack setup, everething start up as normal and i get the cloudstack login in browser... But i cannot log in... According to the cloudstack management log, admin is successfully logged in... (?) What is missing? I thought i might be the difference i mysql version, so i installed a "new" centos 6.10 with mysql 5.1... But after a successful sql restore and cloudstack install, i was surprised i got the same symptoms with login. Then i i though i might be something with ubuntu, so i installed the latest centos 7 as cloudstack management server... Samme result... I can't log in. No error unless i try with wrong password... Then it says wrong password...(?) i have tried with admin users and standard users. Same result. I can mysql server data and it looks the same as the one in production. All usernames are the same.. What am i missing? Is there any api.Key or some config files i need to be aware... And copy to the new management server? -David Sendt fra min Galaxy