Re: [openstack-dev] [devstack]Question about using Devstack
@Bob Ball My goal is that I want to reboot devstack DomU without reinstall devstack. Thanks to @ALL I finally reboot devstack successfully without reinstalling.in my case by this way. First I add `exit 0` before the first line of stack.sh to stop openstack running. Then i use these commands to start the services. cd /etc/apache2/sites-enabled && sudo ln -s ../sites-available/keystone.conf sudo service apache2 restart sudo service rabbitmq-server restart sudo service mysql restart sudo service tgt restart truncate -s 10737418240 /opt/stack/data/stack-volumes-default-backing-file truncate -s 10737418240 /opt/stack/data/stack-volumes-lvmdriver-1-backing-file sudo losetup -f --show /opt/stack/data/stack-volumes-default-backing-file CINDER_DEVICE=`sudo losetup -f --show /opt/stack/data/stack-volumes-lvmdriver-1-backing-file` sudo pvcreate $CINDER_DEVICE sudo vgcreate stack-volumes-lvmdriver-1 $CINDER_DEVICE cd /opt/stack/devstack/ && ./rejoin-stack.sh Some data are lost such as the data in lvm volume used by cinder. But most of my data are kept. On Mon, Nov 23, 2015 at 8:51 PM, Bob Ballwrote: > Hi Young, > > > > venv create: /opt/stack/tempest/.tox/venv > venv installdeps: -r/opt/stack/tempest/requirements.txt, > -r/opt/stack/tempest/test-requirements.txt > ERROR: invocation failed (exit code 1), logfile: > /opt/stack/tempest/.tox/venv/log/venv-1.log > ERROR: actionid: venv > msg: getenv > cmdargs: [local('/opt/stack/tempest/.tox/venv/bin/pip'), 'install', '-U', > '-r/opt/stack/tempest/requirements.txt', > '-r/opt/stack/tempest/test-requirements.txt'] > > > > My interpretation is that because tox is using pip directly, which is now > outside of devstack and knows nothing about the OFFLINE flag. > > This is in the “install_tempest” function from devstack/lib/tempest. A > code change would be needed to stop tox from running if OFFLINE was > specified. At first glance, I believe this is probably a devstack bug. > > > > I suspect that, since Tempest creates flavors, you will not be able to use > tempest in OFFLINE=true mode, but you may be able to use other services if > you remove tempest from ENABLED_SERVICES. > > > > @jordan.pittier @Bob Ball > > If I can ensure my IP address , localrc and everything else are not > changed, is there any way I can achieve my goal? > > > > I don’t think I understand what your goal is – perhaps if you clarify > exactly what you’re trying to achieve then we can answer the question. > > > > Thanks, > > > > Bob > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [devstack]Question about using Devstack
Hi, I'm using devstack to deploy stable/Kilo in my Xenserver. I successfully deploy devstack. But I found that every time I restart it, devstack always run ./stack.sh to clear all my data and resintall all the components. So here comes the questions. 1) Can I stop devstack from reinstalling after rebooting and just use the openstack installed successfully last time. I've tried replacing the stack.sh with another blank shell script to stop it running. Then It didn't reinstall the services after rebooting. However, some services didn't start successfully. 2) I found that devstack will exit if it is unable to connect the Internet when rebooting. Is there any way I can reboot devstack successfully without connection to the Internet after I've install it successfully with connection to the Internet. Thanks in advance ! :) __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [devstack]Question about using Devstack
Really thanks for responsing so rapidly!! @ozamiatin I forget to mention that I've run rejoin-stack.sh and manually started apache. However, something is not still properly configured. Such as lvm volume group is not created. @jordan.pittier Really thanks for you OFFLINE advice. It make some thing offline now. But it fails finally. It gives such error. I tried both OFFLINE=True and OFFLINE=yes in my local rc. venv create: /opt/stack/tempest/.tox/venv > venv installdeps: -r/opt/stack/tempest/requirements.txt, > -r/opt/stack/tempest/test-requirements.txt > ERROR: invocation failed (exit code 1), logfile: > /opt/stack/tempest/.tox/venv/log/venv-1.log > ERROR: actionid: venv > msg: getenv > cmdargs: [local('/opt/stack/tempest/.tox/venv/bin/pip'), 'install', '-U', > '-r/opt/stack/tempest/requirements.txt', > '-r/opt/stack/tempest/test-requirements.txt'] > env: {'UPSTART_EVENTS': 'stopped', 'LOGNAME': 'stack', 'USER': 'stack', > 'os_RELEASE': '14.04', 'OS_REGION_NAME': 'RegionOne', > .. NOTICE I ignore some error here > > Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after > connection broken by 'ProtocolError('Connection aborted.', gaierror(-2, > 'Name or service not known'))': /simple/pbr/ > Could not find a version that satisfies the requirement pbr>=1.6 (from > -r /opt/stack/tempest/requirements.txt (line 1)) (from versions: ) > No matching distribution found for pbr>=1.6 (from -r > /opt/stack/tempest/requirements.txt (line 1)) > ERROR: could not install deps [-r/opt/stack/tempest/requirements.txt, > -r/opt/stack/tempest/test-requirements.txt]; v = > InvocationError('/opt/stack/tempest/.tox/venv/bin/pip install -U > -r/opt/stack/tempest/requirements.txt > -r/opt/stack/tempest/test-requirements.txt (see > /opt/stack/tempest/.tox/venv/log/venv-1.log)', 1) > ___ summary > > ERROR: venv: could not install deps > [-r/opt/stack/tempest/requirements.txt, > -r/opt/stack/tempest/test-requirements.txt]; v = > InvocationError('/opt/stack/tempest/.tox/venv/bin/pip install -U > -r/opt/stack/tempest/requirements.txt > -r/opt/stack/tempest/test-requirements.txt (see > /opt/stack/tempest/.tox/venv/log/venv-1.log)', 1) > Error on exit > World dumping... see /opt/stack/logs/worlddump-2015-11-23-121956.txt for > details @Bob Ball Thanks your mirantis offline advice, I'll try it later :) @yatinkumbhare thanks, I'll try it latter. @jordan.pittier @Bob Ball If I can ensure my IP address , localrc and everything else are not changed, is there any way I can achieve my goal? On Mon, Nov 23, 2015 at 7:07 PM, Oleksii Zamiatin <ozamia...@mirantis.com> wrote: > > > On Mon, Nov 23, 2015 at 12:58 PM, Young Yang <afe.yo...@gmail.com> wrote: > >> Hi, >> I'm using devstack to deploy stable/Kilo in my Xenserver. >> I successfully deploy devstack. But I found that every time I restart it, >> devstack always run ./stack.sh to clear all my data and resintall all the >> components. >> So here comes the questions. >> >> 1) Can I stop devstack from reinstalling after rebooting and just use the >> openstack installed successfully last time. >> I've tried replacing the stack.sh with another blank shell script to >> stop it running. Then It didn't reinstall the services after rebooting. >> However, some services didn't start successfully. >> > > try rejoin-stack.sh - it is in the same folder as unstack.sh, stack.sh > > >> >> 2) I found that devstack will exit if it is unable to connect the >> Internet when rebooting. >> Is there any way I can reboot devstack successfully without connection to >> the Internet after I've install it successfully with connection to the >> Internet. >> >> Thanks in advance ! :) >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] Is there any way I can completely erase all the data when deleting a cinder volume
Oh, I missed that configuration. Thanks very much! On Wed, Nov 18, 2015 at 9:21 PM, Duncan Thomas <duncan.tho...@gmail.com> wrote: > For the LVM and raw block device drivers, there is already an option to do > that - set volume_clear to 'zero' in cinder.conf > > If you want this for other drivers, then the code could easily be adopted, > however I would question whether it is a good idea - the I/O load of > zeroing out volumes is very large, and can easily overshadow the other I/O > on the system significantly. > > If you are using the LVM driver, I'd suggest investigating the thin > provisioning options, since they provide similar levels of tenant security > (though not disk disposal security) with far better performance. > > On 18 November 2015 at 10:03, Young Yang <afe.yo...@gmail.com> wrote: > >> >> There are some sensitive data in my volume. >> I hope openstack can completely erase all the data (e.g. overwrite the >> whole volume will 0 bits) when deleting a cinder volume. >> >> I plan to write some code to make Openstack to mount that volume and >> rewrite the whole volume with 0 bits. >> >> But I'm wondering if there is any better way to accomplish that. >> >> Thanks in advance! :) >> >> >> >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > > -- > -- > Duncan Thomas > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] Is there any way I can completely erase all the data when deleting a cinder volume
There are some sensitive data in my volume. I hope openstack can completely erase all the data (e.g. overwrite the whole volume will 0 bits) when deleting a cinder volume. I plan to write some code to make Openstack to mount that volume and rewrite the whole volume with 0 bits. But I'm wondering if there is any better way to accomplish that. Thanks in advance! :) __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] What's the best way to deploy openstack on XenServer for production?
Hi, I'm trying to use openstack to manage Xenserver. I've read https://wiki.openstack.org/wiki/XenServer/GettingStarted It says This is an opinionated guide to setting up an OpenStack Cloud using Xen/XenServer. Use this to get started quickly. It is far from the only way to setup OpenStack using Xen. And it warns Warning This is still a work in progress. It recommend devstack to deploy XenServer. However, [devstack]( https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md) says The purpose of the code in this directory it to help developers bootstrap a XenServer 6.2 (older versions may also work) + OpenStack *development environment*. So i'm wondering that if there is a better way to deploy openstack on XenServer for production??? Thanks in advance! :) __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev