diff options
| author | Mark Asselstine <mark.asselstine@windriver.com> | 2017-12-01 15:19:42 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-12-01 21:46:36 -0500 |
| commit | 38973e8bc393a4ca36090c58c8b6eb6d093ea69a (patch) | |
| tree | 3e9559be43f0e19f9067ae1524838ea78614e9ea /meta-openstack/recipes-devtools/python/python-glance/glance-api.service | |
| parent | 2cf8169090392f6a7a4f8f119776f499f181fdf2 (diff) | |
| download | meta-cloud-services-38973e8bc393a4ca36090c58c8b6eb6d093ea69a.tar.gz | |
python-glance: uprev to latest stable/pike
Complete the uprev and the transition to systemd. The configuration is
cleaned up to match the setup documentation found in the openstack
installation guide. Once a build is completed with these changes the
controller image is able to have images added via:
%> . /etc/keystone/admin-openrc
%> openstack image create "cirros" \
--file cirros-0.3.5-x86_64-disk.img \
--disk-format qcow2 --container-format bare \
--public
Images can be listed with 'openstack image list' or
'glance image-list' or via the horizon web interface.
Requires introduction of python-glance-store...
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-glance/glance-api.service')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-glance/glance-api.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-glance/glance-api.service b/meta-openstack/recipes-devtools/python/python-glance/glance-api.service new file mode 100644 index 0000000..6777496 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-glance/glance-api.service | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=OpenStack Image Service API | ||
| 3 | After=postgresql.service keystone.service ntp.service rabbitmq-server.service | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | User=%USER% | ||
| 7 | Group=%GROUP% | ||
| 8 | Type=simple | ||
| 9 | WorkingDirectory=%LOCALSTATEDIR%/lib/glance | ||
| 10 | PermissionsStartOnly=true | ||
| 11 | ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/log/glance %LOCALSTATEDIR%/lib/glance | ||
| 12 | ExecStartPre=/bin/chown %USER%:%GROUP% %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/lib/glance | ||
| 13 | ExecStartPre=/bin/chown %USER%:adm %LOCALSTATEDIR%/log/glance | ||
| 14 | ExecStart=/usr/bin/glance-api --config-file=%SYSCONFDIR%/glance/glance-api.conf --log-file=%LOCALSTATEDIR%/log/glance/glance-api.log | ||
| 15 | Restart=on-failure | ||
| 16 | LimitNOFILE=65535 | ||
| 17 | TimeoutStopSec=15 | ||
| 18 | |||
| 19 | [Install] | ||
| 20 | WantedBy=multi-user.target | ||
