SSH / SCP to VM failed using NAMESPACE while IP is assigned by Horizon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Invalid
|
Medium
|
YaoLe |
Bug Description
Brief Description
-----------------
In an External Storage Configuration (2+2+2), while using the NAMESPACE to perform SSH or SCP from the compute to the VM, this is no possible. "Temporary failure in name resolution" error message is seen in the terminal, while Horizon shows "no bootable device" error message on "VM Console Tab"
Severity
--------
Provide the severity of the defect.
<Critical: System/Feature is not usable due to the defect>
Steps to Reproduce
------------------
1.- Follow the steps described here to set up a Duplex Configuration:
https:/
2.- Add the following property to the flavor that you are going to use to create VMs:
openstack flavor list
openstack flavor show <Specifc_
openstack flavor set <Flavor_ID> --property hw:mem_
3.- Create an image
openstack mage create --container-format bare --disk-format qcow2 --file cirros-
4.- Create a security group
openstack security group create security1
openstack security group rule create --ingress --protocol icmp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol tcp --remote-ip 0.0.0.0/0 security1
openstack security group rule create --ingress --protocol udp --remote-ip 0.0.0.0/0 security1
5.- Create a VM
openstack server create --image cirros --flavor m1_large --network public-net0 --security-group security1 richocirros4
5.- Perform the following commands to perform the NAMESPACE commands:
controller-0:~# IP=`openstack server list --name richo1 -f value -c Networks | awk '{ split($1, v, "="); print v[2]}'`
controller-0:~# NAMESPACE=$(ip netns | grep $(neutron net-list --name public-net0 -f value -c id))
controller-0:~# sudo ip netns exec $NAMESPACE scp <file_name> cirros@$IP:~/
Expected Behavior
------------------
You should be able to perform SSH / SCP using NAMESPACE after the VM is created and you see the IP address in Horizon.
Actual Behavior
----------------
"Temporary failure in name resolution" error message is seen in the terminal, while Horizon shows "no bootable device" error message on "VM Console Tab".
Reproducibility
---------------
<Reproducible/
The issue is 100% reproducible
System Configuration
-------
<External Storage (2+2+2)>
Branch/Pull Time/Commit
-------
controller-0:~# cat /etc/build.info
###
### StarlingX
### Built from master
###
OS="centos"
SW_VERSION="19.09"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID=
JOB="STX_
<email address hidden>"
BUILD_NUMBER="285"
BUILD_HOST=
BUILD_DATE=
Last Pass
---------
STX 2.0 Regression testing, after get the advice of creating a security group, information can be seen in this bug: https:/
Timestamp/Logs
--------------
compute-1:~$ sudo virsh list
Password:
Id Name State
-------
4 instance-00000017 running
compute-1:~$ sudo ip netns exec qdhcp-4c4f9541-
ping: cirros@
compute-0:~$ free -h
total used free shared buff/cache available
Mem: 187G 27G 155G 14M 4.7G 158G
Swap: 0B 0B 0B
Test Activity
-------------
[Regression Testing]
Changed in starlingx: | |
status: | Triaged → In Progress |
All nodes full log files.