You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Mariusz Wojtarek <Ma...@support-online.pl.INVALID> on 2023/01/04 11:42:44 UTC

Change https port to 443 from 8443

Hi,

Is it possible to change magement server port from 8443 to 443 ?
I had changed port number in server.propertise file but it doesn’t work, when I used  nmap localhost, server doesn’t listen on port 443
Service cloudstack-management was restarted and it is running


[Support Online]
Mariusz Wojtarek
Administrator iT
P: 22 335 28 00
E: mariusz.wojtarek@support-online.pl<ma...@support-online.pl>
www.support-online.pl<http://www.support-online.pl/>
Poleczki 23 | 02-822 Warszawa
[cidimage005.png@01D77E41.D4CA7110]<https://www.facebook.com/Support-Online-147141642016372>   [cidimage007.png@01D77E41.D4CA7110] <https://linkedin.com/company/support-online>


________________________________
Support OnLine Sp. z o.o., ul. Poleczki 23, 02-822 Warszawa, NIP: 951-20-32-692, Regon: 017431965, KRS: 0000078497,
XIII Wydzial Gospodarczy Krajowego Rejestru Sadowego w Warszawie, Kapital zakladowy: 50 000 PLN - oplacony w pelnej wysokosci.
W przypadku podania w ramach niniejszej korespondencji Panstwa danych osobowych, prosimy zapoznac sie z nastepujaca informacja https://www.support-online.pl/dane-osobowe
In case any of your private data was included within this conversation, please consult this website https://www.support-online.pl/en/personal-data

RE: sysvm live migration 4.17.2

Posted by Piotr Pisz <pi...@piszki.pl>.
Hey,

That's right, recreating systemvm fixed the problem.

Regards,
Piotr

-----Original Message-----
From: Rohit Yadav <ro...@shapeblue.com> 
Sent: Tuesday, January 17, 2023 8:59 AM
To: users@cloudstack.apache.org
Subject: Re: sysvm live migration 4.17.2

Hi Piotr,

You've hit a bug, wherein somehow the systemvm.iso wasn't ejected for the 4.17.0.0 systemvm. You can either do it manually on the KVM host (virsh change-media <domain name> <path such as hdb> --eject) or you can restart the network with cleanup=true or in case of systemvms just destroy them.


Regards.

________________________________
From: Wei ZHOU <us...@gmail.com>
Sent: Sunday, January 15, 2023 04:09
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: sysvm live migration 4.17.2

Looks like a bug.
systemvm.iso does not exist on 4.17+,  it should be ejected when you patched the system vms.
Can you retry after ejecting iso by "virsh change-media" ?

-Wei


 

On Saturday, 14 January 2023, Piotr Pisz <pi...@piszki.pl> wrote:

> Hi,
>
> After upgrading CS from 4.17.0 to 4.17.2 I have a strange symptom, 
> live migration system vm is not working. It ends with the message:
>
> Exception during migrate: org.libvirt.LibvirtException: Cannot access 
> storage file '/usr/share/cloudstack-common/vms/systemvm.iso': No such 
> file or directory
>
> In the directory it looks like this:
>
> [root@psc1 vms]# ls -l
> razem 281080
> -rw-r--r-- 1 root root 98871867 12-14 06:55 agent.zip
> -rw-r--r-- 1 root root   136442 12-14 06:55 cloud-scripts.tgz
> -rw-r--r-- 1 root root     4452 12-14 06:55 patch-sysvms.sh
> -rw-r--r-- 1 root root 94400512 2021-11-24  systemvm.iso.bak
> -rw-r--r-- 1 root root 94404608 2021-11-21  systemvm.iso.bak~
>
> Other than that, everything works as expected, I managed to path the 
> system vm version from 4.16 to 4.17 without any problems.
>
> Any suggestions? 😊
>
> Best regards,
> Piotr
>
>


Re: sysvm live migration 4.17.2

Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Piotr,

You've hit a bug, wherein somehow the systemvm.iso wasn't ejected for the 4.17.0.0 systemvm. You can either do it manually on the KVM host (virsh change-media <domain name> <path such as hdb> --eject) or you can restart the network with cleanup=true or in case of systemvms just destroy them.


Regards.

________________________________
From: Wei ZHOU <us...@gmail.com>
Sent: Sunday, January 15, 2023 04:09
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Re: sysvm live migration 4.17.2

Looks like a bug.
systemvm.iso does not exist on 4.17+,  it should be ejected when you
patched the system vms.
Can you retry after ejecting iso by "virsh change-media" ?

-Wei


 

On Saturday, 14 January 2023, Piotr Pisz <pi...@piszki.pl> wrote:

> Hi,
>
> After upgrading CS from 4.17.0 to 4.17.2 I have a strange symptom, live
> migration system vm is not working. It ends with the message:
>
> Exception during migrate: org.libvirt.LibvirtException: Cannot access
> storage file '/usr/share/cloudstack-common/vms/systemvm.iso': No such
> file or directory
>
> In the directory it looks like this:
>
> [root@psc1 vms]# ls -l
> razem 281080
> -rw-r--r-- 1 root root 98871867 12-14 06:55 agent.zip
> -rw-r--r-- 1 root root   136442 12-14 06:55 cloud-scripts.tgz
> -rw-r--r-- 1 root root     4452 12-14 06:55 patch-sysvms.sh
> -rw-r--r-- 1 root root 94400512 2021-11-24  systemvm.iso.bak
> -rw-r--r-- 1 root root 94404608 2021-11-21  systemvm.iso.bak~
>
> Other than that, everything works as expected, I managed to path the
> system vm version from 4.16 to 4.17 without any problems.
>
> Any suggestions? 😊
>
> Best regards,
> Piotr
>
>

Re: sysvm live migration 4.17.2

Posted by Wei ZHOU <us...@gmail.com>.
Looks like a bug.
systemvm.iso does not exist on 4.17+,  it should be ejected when you
patched the system vms.
Can you retry after ejecting iso by "virsh change-media" ?

-Wei

On Saturday, 14 January 2023, Piotr Pisz <pi...@piszki.pl> wrote:

> Hi,
>
> After upgrading CS from 4.17.0 to 4.17.2 I have a strange symptom, live
> migration system vm is not working. It ends with the message:
>
> Exception during migrate: org.libvirt.LibvirtException: Cannot access
> storage file '/usr/share/cloudstack-common/vms/systemvm.iso': No such
> file or directory
>
> In the directory it looks like this:
>
> [root@psc1 vms]# ls -l
> razem 281080
> -rw-r--r-- 1 root root 98871867 12-14 06:55 agent.zip
> -rw-r--r-- 1 root root   136442 12-14 06:55 cloud-scripts.tgz
> -rw-r--r-- 1 root root     4452 12-14 06:55 patch-sysvms.sh
> -rw-r--r-- 1 root root 94400512 2021-11-24  systemvm.iso.bak
> -rw-r--r-- 1 root root 94404608 2021-11-21  systemvm.iso.bak~
>
> Other than that, everything works as expected, I managed to path the
> system vm version from 4.16 to 4.17 without any problems.
>
> Any suggestions? 😊
>
> Best regards,
> Piotr
>
>

sysvm live migration 4.17.2

Posted by Piotr Pisz <pi...@piszki.pl>.
Hi,

After upgrading CS from 4.17.0 to 4.17.2 I have a strange symptom, live migration system vm is not working. It ends with the message:

Exception during migrate: org.libvirt.LibvirtException: Cannot access storage file '/usr/share/cloudstack-common/vms/systemvm.iso': No such file or directory

In the directory it looks like this:

[root@psc1 vms]# ls -l
razem 281080
-rw-r--r-- 1 root root 98871867 12-14 06:55 agent.zip
-rw-r--r-- 1 root root   136442 12-14 06:55 cloud-scripts.tgz
-rw-r--r-- 1 root root     4452 12-14 06:55 patch-sysvms.sh
-rw-r--r-- 1 root root 94400512 2021-11-24  systemvm.iso.bak
-rw-r--r-- 1 root root 94404608 2021-11-21  systemvm.iso.bak~

Other than that, everything works as expected, I managed to path the system vm version from 4.16 to 4.17 without any problems.

Any suggestions? 😊

Best regards,
Piotr


Re: Change https port to 443 from 8443

Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Mariusz,

Using server.properties, the https port of the management server can be changed: https://docs.cloudstack.apache.org/en/latest/installguide/optional_installation.html#ssl-optional

However, the cloudstack-management process runs as the 'cloud' user and a non-root user [1]. So, either you need to configure something specific to your Linux host/distro, or even explore something like external LB configuration or internal host iptables rules to NAT 443 port to internal 8443 [2].

[1] https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443
[2] https://serverfault.com/questions/540241/iptables-how-to-redirect-all-8443-incoming-and-outgoing-to-443


Regards.

________________________________
From: Mariusz Wojtarek <Ma...@support-online.pl.INVALID>
Sent: Wednesday, January 4, 2023 17:12
To: users@cloudstack.apache.org <us...@cloudstack.apache.org>
Subject: Change https port to 443 from 8443


Hi,



Is it possible to change magement server port from 8443 to 443 ?

I had changed port number in server.propertise file but it doesn’t work, when I used  nmap localhost, server doesn’t listen on port 443

Service cloudstack-management was restarted and it is running





[Support Online]

Mariusz Wojtarek

Administrator iT

P: 22 335 28 00

E: mariusz.wojtarek@support-online.pl<ma...@support-online.pl>

www.support-online.pl<http://www.support-online.pl/>

Poleczki 23 | 02-822 Warszawa

[cidimage005.png@01D77E41.D4CA7110]<https://www.facebook.com/Support-Online-147141642016372>   [cidimage007.png@01D77E41.D4CA7110] <https://linkedin.com/company/support-online>





________________________________
Support OnLine Sp. z o.o., ul. Poleczki 23, 02-822 Warszawa, NIP: 951-20-32-692, Regon: 017431965, KRS: 0000078497,
XIII Wydział Gospodarczy Krajowego Rejestru Sądowego w Warszawie, Kapitał zakładowy: 50 000 PLN - opłacony w pełnej wysokości.
W przypadku podania w ramach niniejszej korespondencji Państwa danych osobowych, prosimy zapoznać się z następującą informacją https://www.support-online.pl/dane-osobowe
In case any of your private data was included within this conversation, please consult this website https://www.support-online.pl/en/personal-data

 


Re: Change https port to 443 from 8443

Posted by Daan Hoogland <da...@gmail.com>.
Mariusz,
Can you give the properties file? It should work the way you describe.

On Wed, Jan 4, 2023 at 12:43 PM Mariusz Wojtarek
<Ma...@support-online.pl.invalid> wrote:

> Hi,
>
>
>
> Is it possible to change magement server port from 8443 to 443 ?
>
> I had changed port number in server.propertise file but it doesn’t work,
> when I used  nmap localhost, server doesn’t listen on port 443
>
> Service cloudstack-management was restarted and it is running
>
>
>
>
>
> [image: Support Online]
>
> *Mariusz Wojtarek*
>
> Administrator iT
>
> *P: *22 335 28 00
>
> *E: *mariusz.wojtarek@support-online.pl
>
> www.support-online.pl
>
> Poleczki 23 | 02-822 Warszawa
>
> [image: cidimage005.png@01D77E41.D4CA7110]
> <https://www.facebook.com/Support-Online-147141642016372>   [image:
> cidimage007.png@01D77E41.D4CA7110]
> <https://linkedin.com/company/support-online>
>
>
>
>
> ------------------------------
> Support OnLine Sp. z o.o., ul. Poleczki 23, 02-822 Warszawa, NIP:
> 951-20-32-692, Regon: 017431965, KRS: 0000078497,
> XIII Wydział Gospodarczy Krajowego Rejestru Sądowego w Warszawie, Kapitał
> zakładowy: 50 000 PLN - opłacony w pełnej wysokości.
> W przypadku podania w ramach niniejszej korespondencji Państwa danych
> osobowych, prosimy zapoznać się z następującą informacją
> https://www.support-online.pl/dane-osobowe
> In case any of your private data was included within this conversation,
> please consult this website https://www.support-online.pl/en/personal-data
>


-- 
Daan