Skip to content

Windows passwords cannot be set or reset when the system is on an isolated network with dual routers #11877

Description

@leolns

problem

Using dual routers:
VIP IP: 10.90.0.1 (where password provider port 8080 is open)
Primary: 10.90.0.74
Secondary: 10.90.0.193

Error log
[ERROR]: Unable to contact password provider at: http://10.90.0.74:8080/

It's trying to use the local ip address from primary router. Port 8080 is not open on local ip addres 10.90.0.74

I figured out that windows is getting this ip from /etc/dnsmasq.d/cloud.conf:
listen-address= 127.0.0.1,10.90.0.1,10.90.0.74

If I change the listen-addres to: listen-address= 127.0.0.1,10.90.0.1 and restart dnsmasq, it works.

In VR /opt/cloud/bin/cs/CsDhcp.py:

if self.cl.is_redundant(): listen_address.append(gateway) listen_address.append(ip)

FIX:

if self.cl.is_redundant(): listen_address.append(gateway) else: listen_address.append(ip)

versions

Cloudstack 4.21.0.0 + Vmware 8u3g

The steps to reproduce the bug

Create a new windows machine or try to reset it's password

What to do about it?

I figured out that windows is getting this ip from /etc/dnsmasq.d/cloud.conf:
listen-address= 127.0.0.1,10.90.0.1,10.90.0.74

If I change the listen-addres to: listen-address= 127.0.0.1,10.90.0.1 and restart dnsmasq, it works.

In VR /opt/cloud/bin/cs/CsDhcp.py:

if self.cl.is_redundant(): listen_address.append(gateway) listen_address.append(ip)

FIX:

if self.cl.is_redundant(): listen_address.append(gateway) else: listen_address.append(ip)

Activity

  1. weizhouapache commented on Oct 21, 2025

    @weizhouapache
    Member

    this seems to be caused by #10183 which fixes #10182

    we need to investigate how to solve both issues

  2. added this to the 4.20.3 milestone on Oct 21, 2025
  3. added theissue type on Oct 23, 2025
  4. tuanhoangth1603 commented on Dec 12, 2025

    @tuanhoangth1603

    Hello,
    I also faced the same issue after upgraded 4.22 from 4.20

  5. modified the milestones: 4.20.3, 4.20.4 on Feb 16, 2026
  6. self-assigned this
    on Mar 13, 2026
  7. moved this from Todo to Dev In Progress in Apache CloudStack BugFest - Issueson Mar 13, 2026
  8. nvazquez commented on Mar 16, 2026

    @nvazquez
    Contributor

    Hi @leolns @tuanhoangth1603 - one question: are you using this installer (https://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#windows-os-installation) or a different solution like cloudbase-init?

  9. leolns commented on Mar 18, 2026

    @leolns
    Author

    Hi @leolns @tuanhoangth1603 - one question: are you using this installer (https://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#windows-os-installation) or a different solution like cloudbase-init?

    I'm using the one from the link you sent.

  10. harikrishna-patnala commented on Aug 17, 2026

    @harikrishna-patnala
    Member

    fixed by #13194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions