cannot create volumes with edge stein (cinder not enabled)

Bug #1863667 reported by ltetrel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MicroStack
Confirmed
Wishlist
Unassigned

Bug Description

Hi,

We need to create volumes.
Even if you say that cinder is integrated with microstack (https://ubuntu.com/tutorials/microstack-get-started#1-overview), I don't see any volume tab in the dashboard.

How do I enable it correctly ? Shoud I install it manually with https://docs.openstack.org/cinder/train/install/

Thank you,

Revision history for this message
Pen Gale (pengale) wrote :

Work to make volume setup for Cinder more automagic (and possibly include ceph) is on roadmap, but isn't complete yet.

In the meantime, you should be able to setup lvm with Cinder by following the docs here: https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html

Note that you can include any configuration the docs mention by dropping files into /var/snap/microstack/common/etc/cinder/cinder.conf.d

Revision history for this message
ltetrel (ltetrel) wrote : Re: [Bug 1863667] Re: cannot create volumes with edge stein (cinder not enabled)

Ok I will try that,

So for example when they are mentioning in the docs the file
/etc/cinder/cinder.conf
(
https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html#install-and-configure-components
)
I should create one at
/var/snap/microstack/common/etc/cinder/cinder.conf.d/cinder.conf ?

Before doing that I think I should follow these steps since they are no
cinder users right ?
https://docs.openstack.org/cinder/stein/install/cinder-controller-install-ubuntu.html

Le mar. 18 févr. 2020 à 11:51, Pete Vander Giessen <
<email address hidden>> a écrit :

> Work to make volume setup for Cinder more automagic (and possibly
> include ceph) is on roadmap, but isn't complete yet.
>
> In the meantime, you should be able to setup lvm with Cinder by
> following the docs here: https://docs.openstack.org/cinder/stein/install
> /cinder-storage-install-obs.html
> <https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html>
>
> Note that you can include any configuration the docs mention by dropping
> files into /var/snap/microstack/common/etc/cinder/cinder.conf.d
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1863667
>
> Title:
> cannot create volumes with edge stein (cinder not enabled)
>
> Status in MicroStack:
> New
>
> Bug description:
> Hi,
>
> We need to create volumes.
> Even if you say that cinder is integrated with microstack (
> https://ubuntu.com/tutorials/microstack-get-started#1-overview), I don't
> see any volume tab in the dashboard.
>
> How do I enable it correctly ? Shoud I install it manually with
> https://docs.openstack.org/cinder/train/install/
>
> Thank you,
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/microstack/+bug/1863667/+subscriptions
>

Revision history for this message
ltetrel (ltetrel) wrote :

When I am trying to install cinder myself :
https://docs.openstack.org/cinder/stein/install/cinder-controller-install-ubuntu.html
openstack service create --name cinderv2 \ --description "OpenStack Block
Storage" volumev2

I have this error :

openstack service create: error: unrecognized arguments: Storage volumev2

Do you have any ideas ?

Le mar. 18 févr. 2020 à 13:39, loic tetrel <email address hidden> a
écrit :

> Ok I will try that,
>
> So for example when they are mentioning in the docs the file /etc/cinder/cinder.conf
> (
> https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html#install-and-configure-components
> )
> I should create one at
> /var/snap/microstack/common/etc/cinder/cinder.conf.d/cinder.conf ?
>
> Before doing that I think I should follow these steps since they are no
> cinder users right ?
> https://docs.openstack.org/cinder/stein/install/cinder-controller-install-ubuntu.html
>
> Le mar. 18 févr. 2020 à 11:51, Pete Vander Giessen <
> <email address hidden>> a écrit :
>
>> Work to make volume setup for Cinder more automagic (and possibly
>> include ceph) is on roadmap, but isn't complete yet.
>>
>> In the meantime, you should be able to setup lvm with Cinder by
>> following the docs here: https://docs.openstack.org/cinder/stein/install
>> /cinder-storage-install-obs.html
>> <https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html>
>>
>> Note that you can include any configuration the docs mention by dropping
>> files into /var/snap/microstack/common/etc/cinder/cinder.conf.d
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1863667
>>
>> Title:
>> cannot create volumes with edge stein (cinder not enabled)
>>
>> Status in MicroStack:
>> New
>>
>> Bug description:
>> Hi,
>>
>> We need to create volumes.
>> Even if you say that cinder is integrated with microstack (
>> https://ubuntu.com/tutorials/microstack-get-started#1-overview), I don't
>> see any volume tab in the dashboard.
>>
>> How do I enable it correctly ? Shoud I install it manually with
>> https://docs.openstack.org/cinder/train/install/
>>
>> Thank you,
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/microstack/+bug/1863667/+subscriptions
>>
>

Revision history for this message
ltetrel (ltetrel) wrote :

microstack.openstack service list

+----------------------------------+-----------+-----------+
| ID | Name | Type |
+----------------------------------+-----------+-----------+
| 155f757e09744c3b8e08f1e4c80efe21 | glance | image |
| 638a398200cc4c47b3fd83627e39e717 | placement | placement |
| 9ec41c704e4c4123b6a7cfb77702d067 | keystone | identity |
| c0197b92495f4f3183258946a0e6cb16 | neutron | network |
| dc49f897061e4e9a8901000d9d2bf5b5 | nova | compute |
+----------------------------------+-----------+-----------+

Le mer. 19 févr. 2020 à 13:59, loic tetrel <email address hidden> a
écrit :

> When I am trying to install cinder myself :
> https://docs.openstack.org/cinder/stein/install/cinder-controller-install-ubuntu.html
> openstack service create --name cinderv2 \ --description "OpenStack Block
> Storage" volumev2
>
> I have this error :
>
> openstack service create: error: unrecognized arguments: Storage volumev2
>
> Do you have any ideas ?
>
>
>
> Le mar. 18 févr. 2020 à 13:39, loic tetrel <email address hidden> a
> écrit :
>
>> Ok I will try that,
>>
>> So for example when they are mentioning in the docs the file /etc/cinder/cinder.conf
>> (
>> https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html#install-and-configure-components
>> )
>> I should create one at
>> /var/snap/microstack/common/etc/cinder/cinder.conf.d/cinder.conf ?
>>
>> Before doing that I think I should follow these steps since they are no
>> cinder users right ?
>> https://docs.openstack.org/cinder/stein/install/cinder-controller-install-ubuntu.html
>>
>> Le mar. 18 févr. 2020 à 11:51, Pete Vander Giessen <
>> <email address hidden>> a écrit :
>>
>>> Work to make volume setup for Cinder more automagic (and possibly
>>> include ceph) is on roadmap, but isn't complete yet.
>>>
>>> In the meantime, you should be able to setup lvm with Cinder by
>>> following the docs here: https://docs.openstack.org/cinder/stein/install
>>> /cinder-storage-install-obs.html
>>> <https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html>
>>>
>>> Note that you can include any configuration the docs mention by dropping
>>> files into /var/snap/microstack/common/etc/cinder/cinder.conf.d
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https://bugs.launchpad.net/bugs/1863667
>>>
>>> Title:
>>> cannot create volumes with edge stein (cinder not enabled)
>>>
>>> Status in MicroStack:
>>> New
>>>
>>> Bug description:
>>> Hi,
>>>
>>> We need to create volumes.
>>> Even if you say that cinder is integrated with microstack (
>>> https://ubuntu.com/tutorials/microstack-get-started#1-overview), I
>>> don't see any volume tab in the dashboard.
>>>
>>> How do I enable it correctly ? Shoud I install it manually with
>>> https://docs.openstack.org/cinder/train/install/
>>>
>>> Thank you,
>>>
>>> To manage notifications about this bug go to:
>>> https://bugs.launchpad.net/microstack/+bug/1863667/+subscriptions
>>>
>>

Revision history for this message
Pen Gale (pengale) wrote :

@ltetrel: I bet that you're running into an issue with spaces in commands passed to microstack.openstack. You can work around it for now by running:

    sudo snap run --shell microstack.init
    source $SNAP_COMMON/etc/microstack.rc
    openstack <your command with spaces>

The offending bit of bash is here: https://opendev.org/x/microstack/src/branch/master/snap-wrappers/openstack/openstack-wrapper (That $@ needs to be wrapped in either single or double quotes, I believe.)

Revision history for this message
Lukas Weberruß (lweberru) wrote :

Hi,

I managed to setup the cinder service until the step where I need to start the service.
How do I start (and add to autostart) the cinder(-scheduler) service within microstack?

Regards
Lukas

Revision history for this message
Max Berrios Cruz (maxberrioscruz) wrote :

@lweberru,

To complete the guide there is no mention that the "systemd" service snap.microstack.*.services are autogenerated from whats seems to be the snap install. This means that for you to enable the services and make them "autostart" it will have to be done manually by creating the service in "/etc/systemd/system/". I'm adding as an example cinder-scheduler and this was repeated for cinder-uwsgi as well. Once created the service just start the new services if some issues still arise just restart the whole service batch ( systemctl restart snap.microstack.* )

file: snap.microstack.cinder-scheduler.service

[Unit]
# Auto-generated, DO NOT EDIT
Description=Service for snap application microstack.cinder-scheduler
Requires=snap-microstack-196.mount
Wants=network.target
After=snap-microstack-196.mount network.target
X-Snappy=yes

[Service]
ExecStart=/usr/bin/snap run microstack.cinder-scheduler
SyslogIdentifier=microstack.cinder-scheduler
Restart=on-failure
WorkingDirectory=/var/snap/microstack/196
TimeoutStopSec=30
Type=simple

[Install]
WantedBy=multi-user.target

Regards
- MRBC

Pen Gale (pengale)
Changed in microstack:
status: New → Confirmed
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.