We have added a second public subnet via the legacy interface and can add an IP 
from this interface ( only via the legacy interface ) but when the instance 
boots it says it fails to contact the virtual router to obtain the password.
I can ping the virtual router from the instance and also the IP it is trying to 
contact the VR with.

The VR has the second subnet in its interface.

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 1e:00:f4:00:00:04 brd ff:ff:ff:ff:ff:ff
inet 188.XXX.XXX.XXX/26 brd 188.165.185.127 scope global eth0
valid_lft forever preferred_lft forever
inet XXX.XXX.XXX.131/26 brd 51.255.101.191 scope global eth0
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 0e:00:a9:fe:7b:14 brd ff:ff:ff:ff:ff:ff
inet 169.254.123.20/16 brd 169.254.255.255 scope global eth1
valid_lft forever preferred_lft forever

In saying that, the SSH key is working..... Normally without this second subnet 
both password and ssh injection is working via cloud-init but not when we use a 
second subnet in the default network.

We are using the templates on dl.openvm.com and these work great.

If someone from Shapeblue knows a solution I would be happy to enage Shaepblue 
for paid support to get this issue resolved.

Below is the cloud-init log in the instance. The IP address the VR is 
XXX.XXX.XXX.100 and is on a different subnet to the instance. I can ping the 
100 IP address is the VR.

2021-04-16 11:53:45,370 - url_helper.py[DEBUG]: [0/6] open 
'http://XXX.XXX.XXX.100/latest/meta-data/instance-id' with {'url': 
'http://XXX.XXX.XXX.100/latest/meta-data/instance-id', 'headers': 
{'User-Agent': 'Cloud-Init/19.4'}, 'allow_redirects': True, 'method': 'GET', 
'timeout': 5.0} configuration
2021-04-16 11:53:45,442 - url_helper.py[DEBUG]: Read from 
http://XXX.XXX.XXX.100/latest/meta-data/instance-id (200, 36b) after 1 attempts
2021-04-16 11:53:45,442 - DataSourceCloudStack.py[DEBUG]: Crawl of metadata 
service took 0 seconds
2021-04-16 11:53:45,443 - util.py[DEBUG]: Running command ['wget', '--quiet', 
'--tries', '3', '--timeout', '20', '--output-document', '-', '--header', 
'DomU_Request: send_my_password', 'XXX.XXX.XXX.100:8080'] with allowed return 
codes [0] (shell=False, capture=True)
2021-04-16 11:54:48,465 - util.py[WARNING]: Failed to fetch password from 
virtual router XXX.XXX.XXX.100
2021-04-16 11:54:48,466 - util.py[DEBUG]: Failed to fetch password from virtual 
router XXX.XXX.XXX.100
Traceback (most recent call last):
File 
"/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudStack.py", 
line 131, in _get_data
set_password = password_client.get_password()
File 
"/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudStack.py", 
line 58, in get_password
password = self._do_request('send_my_password')
File 
"/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceCloudStack.py", 
line 53, in _do_request
'{0}:8080'.format(self.virtual_router_address)
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 2084, in subp
cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: ['wget', '--quiet', '--tries', '3', '--timeout', '20', 
'--output-document', '-', '--header', 'DomU_Request: send_my_password', 
'XXX.XXX.XXX.100:8080']
Exit code: 4
Reason: -
Stdout:
Stderr:
2021-04-16 11:54:48,479 - atomic_helper.py[DEBUG]: Atomically writing to file 
/run/cloud-init/instance-data.json (via temporary file 
/run/cloud-init/tmpRWbbY9) - w: [644] 3990 bytes/chars
2021-04-16 11:54:48,480 - atomic_helper.py[DEBUG]: Atomically writing to file 
/run/cloud-init/instance-data-sensitive.json (via temporary file 
/run/cloud-init/tmpLFUUTq) - w: [600] 3990 bytes/chars
2021-04-16 11:54:48,480 - handlers.py[DEBUG]: finish: 
init-network/search-CloudStack: SUCCESS: found network data from 
DataSourceCloudStack
2021-04-16 11:54:48,481 - stages.py[INFO]: Loaded datasource 
DataSourceCloudStack - DataSourceCloudStack
2021-04-16 11:54:48,481 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg 
(quiet=False)
2021-04-16 11:54:48,481 - util.py[DEBUG]: Read 1237 bytes from 
/etc/cloud/cloud.cfg
2021-04-16 11:54:48,482 - util.py[DEBUG]: Attempting to load yaml from string 
of length 1237 with allowed root types (<type 'dict'>,)
2021-04-16 11:54:48,493 - util.py[DEBUG]: Reading from 
/etc/cloud/cloud.cfg.d/99_cloudstack.cfg (quiet=False)

Reply via email to