2018-04-09 12:53:39 |
Margarita Mazepa |
description |
a)Create 3600 neutron networks and one sub-network per network.
example : neutron net-create Net-01 (good to have a for loop in bash)
neutron subnet-create --name SubNet-01 Net-01 10.0.0.0/24
and so on.
b)Create a VM using one of the above networks.
example : nova boot --image <image-id> --flavor <flavor-id> --nic net-id=xxx VM1
c)Login to created VM
root@cic-1:~# sudo ip netns exec qdhcp-80d1e7e2-e1b9-49fd-94c6-b7f0bce85639 ssh ubuntu@10.10.0.2
Cannot open network namespace "qdhcp-80d1e7e2-e1b9-49fd-94c6-b7f0bce85639": No such file or directory
It is not possible to login to VM as DHCP is not created for the network used while booting the VM.
DHCP is created only for a few networks, not for all networks by the time all networks are created.
While 3600 networks creation is taking nearly 2 and a half hours, namespaces for these networks are created after more than 10 hours.
c)Sample script used in creating networks
root@cic-1:~# cat sample.sh
k=1
for i in $(seq 1 36);
do
for j in $(seq 1 100);
do
neutron net-create stR6-436Net-$k;
neutron subnet-create --name stR6-436SubNet-$k stR6-436Net-$k 10.0.$i.$j/24;
k=$(($k + 1))
done
done |
a)Create 3600 neutron networks and one sub-network per network.
example : neutron net-create Net-01 (good to have a for loop in bash)
neutron subnet-create --name SubNet-01 Net-01 10.0.0.0/24
and so on.
b)Create a VM using one of the above networks.
example : nova boot --image <image-id> --flavor <flavor-id> --nic net-id=xxx VM1
c)Login to created VM
root@cic-1:~# sudo ip netns exec qdhcp-80d1e7e2-e1b9-49fd-94c6-b7f0bce85639 ssh ubuntu@10.10.0.2
Cannot open network namespace "qdhcp-80d1e7e2-e1b9-49fd-94c6-b7f0bce85639": No such file or directory
It is not possible to login to VM as DHCP is not created for the network used while booting the VM.
DHCP is created only for a few networks, not for all networks by the time all networks are created.
While 3600 networks creation is taking nearly 2 and a half hours, namespaces for these networks are created after more than 10 hours.
c)Sample script used in creating networks
root@cic-1:~# cat sample.sh
k=1
for i in $(seq 1 36);
do
for j in $(seq 1 100);
do
neutron net-create stR6-436Net-$k;
neutron subnet-create --name stR6-436SubNet-$k stR6-436Net-$k 10.0.$i.$j/24;
k=$(($k + 1))
done
done
we can reproduce this bug http://paste.openstack.org/show/718318/ |
|