Ask Your Question

linuxtechi's profile - activity

2020-02-17 10:11:26 -0500 received badge  Notable Question (source)
2020-02-13 01:48:19 -0500 received badge  Popular Question (source)
2020-02-12 04:34:46 -0500 asked a question How to Migrate OpenStack Instance from one Tenant to another

Hi Folks,

I am using Mitaka OpenStack and VLAN as network type driver for tenant VMs. Initially i have provisioned all the VMs (Including Customer VMs) inside the admin. I want to segregate my internal VMs and Customer VMs, for this to accomplish i have created different tenant names and now i want customer VMs from admin tenant to Customer tenant,

On Google , i have a found a script which migrates the VMs but that script doesn't update network and security group details,

Can anyone help me and suggest what steps needs to executed to update network , security group and attached Volumes ..?

Below is the exact script:

#!/bin/bash
for i
do
if [ "$i" != "$1" ]; then
echo "moving instance id " $i " to project id" $1;
mysql -uroot -s -N <<query
use nova;
update instances set project_id="$1" where uuid="$i";
query
else
#get project id of the instance before update
old_proj_id=$(mysql -uroot -s -N <<query
use nova;
select project_id from instances where uuid="$2";
query
)
#get user id of the instance before update
user_id=$(mysql -uroot -s -N <<query
use nova;
select user_id from instances where uuid="$2";
query
)

fi
done
echo "quota_resync " $old_proj_id;
./quota_resync.sh $old_proj_id $user_id;
echo "quota_resync " $1;
./quota_resync.sh $1 $user_id;
root@xxxx:/mnt# cat quota_resync.sh
#!/bin/bash
count=$(mysql -uroot -s -N <<query
use nova;
select count(*) from instances where project_id="$1" and vm_state="active";
query
)

memory=$(mysql -uroot -s -N <<query
use nova;
select sum(memory_mb) from instances where project_id="$1" and vm_state="active";
query
)

vcpu=$(mysql -uroot -s -N <<query
use nova;
select sum(vcpus) from instances where project_id="$1" and vm_state="active";
query
)

echo "count" $count;
echo "vcpus" $vcpu;
echo "Ram" $memory;

update=$(mysql -uroot -s -N <<query
use nova;
update quota_usages set in_use=$count where project_id="$1" and user_id="$2" and resource="instances";
update quota_usages set in_use=$memory where project_id="$1" and user_id="$2" and resource="ram";
update quota_usages set in_use=$vcpu where project_id="$1" and user_id="$2" and resource="cores";
query
)
root@xxxx:/mnt#

Script Execution Method : # /vm_move.sh "destination_tenant_id" "VM_id"

2017-07-31 08:01:11 -0500 received badge  Notable Question (source)
2017-07-31 08:01:11 -0500 received badge  Famous Question (source)
2017-05-28 06:12:54 -0500 received badge  Nice Question (source)
2017-03-07 14:45:05 -0500 received badge  Student (source)
2017-03-06 03:55:31 -0500 received badge  Popular Question (source)
2017-03-03 03:57:06 -0500 asked a question How to Monitor OpenStack Infra including instances

Hello Folks,

I am using community based Openstack for test and development environment and looking for a monitoring solution that can monitor my OpenStack cloud infrastructure including all the instances. Is there any existing tool which can help me to achieve the above requirement.

thanks in advance

2017-03-03 03:55:38 -0500 asked a question How to Monitor OpenStack cloud including Instances

Hello Folks,

I am using community based Openstack for test and development environment and looking for a monitoring solution that can monitor my OpenStack cloud infrastructure including all the instances. Is there any existing tool which can help me to achieve the above requirement.

thanks in advance

2017-01-31 15:59:04 -0500 received badge  Famous Question (source)
2017-01-24 23:30:02 -0500 received badge  Notable Question (source)
2017-01-16 15:22:38 -0500 received badge  Popular Question (source)
2017-01-01 08:16:50 -0500 asked a question LBaas (Load balancer) is not available in Newton Horizon Dashboard

Hi Folks,

Happy New Year to all !!!!!!

I have installed single node Newton Openstack using packstack script, during the installation i have enabled the LBaas installation option (CONFIG_LBAAS_INSTALL=y) in the answer file. Installation was successful but Load balancer option is missing in the Dashboard. I have enabled option "enable_lb': True" in the file "/etc/openstack-dashboard/local_settings" and restart the httpd service, But still Load Balancer option is missing on the dashboard.

Any idea or steps how to resolve this issue....

Thanks in advance

2016-11-03 01:42:22 -0500 received badge  Enthusiast
2016-10-23 21:13:26 -0500 asked a question Instances on Mitaka getting Request TIme out quite frequently

Hello Folks ,

I have recently deploy multi node openstack mikata for the internal use. I am getting Request time out and some times Destination host unreachable while pinging and accessing the instances.

Reply from  x.x.x.x: bytes=32 time=490ms TTL=52
Reply from  x.x.x.x: bytes=32 time=478ms TTL=52
Reply from  x.x.x.x: bytes=32 time=477ms TTL=52
Reply from  x.x.x.x: bytes=32 time=482ms TTL=52
Request timed out.
Request timed out.
Reply from  x.x.x.x: Destination host unreachable.
Reply from  x.x.x.x: Destination host unreachable.
Reply from  x.x.x.x: Destination host unreachable.
Reply from  x.x.x.x: bytes=32 time=483ms TTL=52
Reply from  x.x.x.x: bytes=32 time=481ms TTL=52
Reply from  x.x.x.x: bytes=32 time=485ms TTL=52

Any idea how to resolve this issue, i have already double check my network settings on my physical host as well. Below is the details of my Setup :

Controller Node - Three bond interface , one for mgmt (management VLAN IP is assigned to it and used for all api communication) , VMdata (VM data Vlan ip is assigned and used for Tunneling) and dmz ( external ip is assigned to this interface for accessing the server from outside )

Compute Node ( Same Networking like Controller node)

Network Node (Same Networking like Controller node, the only difference is that i have added dmz bond in br-ex bridge as port and assign the ip of dmz to br-ex interface )

Thanks in advance.

2016-10-11 09:21:10 -0500 received badge  Famous Question (source)
2016-10-10 03:43:44 -0500 received badge  Notable Question (source)
2016-10-09 21:45:59 -0500 received badge  Popular Question (source)
2016-10-08 21:24:04 -0500 asked a question Error while installing openstack 'newton' using rdo packstack

Hi Folks ,

I am trying to install 3 node openstack newton on CentOS 7 using packstack. But getting below error. In the answer file i have mentioned that packstack script will create selfsign certificate at the mentioned location.

Preparing Nova VNC Proxy entries [ ERROR ]

ERROR : [Errno 2] No such file or directory: '/etc/pki/tls/certs/selfcert.crt'

~]# tail -f /var/tmp/packstack/20161008-104443-u_wbaC/openstack-setup.log File "/usr/lib/python2.7/site-packages/packstack/modules/ospluginutils.py", line 101, in generate_ssl_cert ca_file = open(config['CONFIG_SSL_CACERT_FILE'], 'rt').read() IOError: [Errno 2] No such file or directory: '/etc/pki/tls/certs/selfcert.crt'

2016-10-08 10:56:33::INFO::shell::94::root:: [192.168.43.70] Executing script: rm -rf /var/tmp/packstack/8a47dc48454c40a0a8c7856728604812 2016-10-08 10:56:34::INFO::shell::94::root:: [192.168.43.80] Executing script: rm -rf /var/tmp/packstack/844988cf4be74a6cb5b95a22c7eab220 2016-10-08 10:56:34::INFO::shell::94::root:: [192.168.43.90] Executing script: rm -rf /var/tmp/packstack/d2e704b6b353457aac455dca91efc2d6