• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

UnixArena

  • Home
  • Discover DevOps Tools
  • kubernetes
  • DevOps
    • Terraform
    • Jenkins
    • Docker
    • Openshift
      • OKD
    • Ansible engine
    • Ansible Tower
      • AWX
    • Puppet
  • Cloud
    • Azure
    • AWS
    • Openstack
    • Docker
  • VMware
    • vCloud Director
    • VMware-Guests
    • Vcenter Appliance 5.5
    • vC OPS
    • VMware SDDC
    • VMware vSphere 5.x
      • vSphere Network
      • vSphere DS
      • vShield Suite
    • VMware vSphere 6.0
    • VSAN
    • VMware Free Tools
  • DevOps Instructor-led Training
  • Contact

Openstack – Installing & Configuring Glance – Part 4

September 27, 2015 By Cloud_Devops 5 Comments

 

11. Register the image service on keystone. So that keystone will authenticate whenever glance will be used.

root@OSCTRL-UA:~# keystone service-create --name=glance --type=image --description="OpenStack Image Service"
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |     OpenStack Image Service      |
|   enabled   |               True               |
|      id     | ee22977db7d84566a4c2217d48859001 |
|     name    |              glance              |
|     type    |              image               |
+-------------+----------------------------------+
root@OSCTRL-UA:~#

 

12. Create the end point service .

root@OSCTRL-UA:~# keystone endpoint-create --service-id=$(keystone service-list | awk '/ image / {print $2}') --publicurl=http://OSCTRL-UA:9292 --internalurl=http://OSCTRL-UA:9292 --adminurl=http://OSCTRL-UA:9292
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |      http://OSCTRL-UA:9292       |
|      id     | b17e1f61815e4f83abf3606d1a7b3764 |
| internalurl |      http://OSCTRL-UA:9292       |
|  publicurl  |      http://OSCTRL-UA:9292       |
|    region   |            regionOne             |
|  service_id | ee22977db7d84566a4c2217d48859001 |
+-------------+----------------------------------+
root@OSCTRL-UA:~#

 

13. Restart the glance image services .

root@OSCTRL-UA:~# service glance-registry restart
glance-registry stop/waiting
glance-registry start/running, process 7160
root@OSCTRL-UA:~# service glance-api restart
glance-api stop/waiting
glance-api start/running, process 7214
root@OSCTRL-UA:~#

 

14. Verify the glance service installation by creating the new image & listing it .

 

Let me download the cirros from web.

root@OSCTRL-UA:~# wget https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
--2015-09-27 12:33:13--  https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
Resolving launchpad.net (launchpad.net)... 91.189.89.223, 91.189.89.222
Connecting to launchpad.net (launchpad.net)|91.189.89.223|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://launchpadlibrarian.net/83305348/cirros-0.3.0-x86_64-disk.img [following]
--2015-09-27 12:33:16--  https://launchpadlibrarian.net/83305348/cirros-0.3.0-x86_64-disk.img
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9761280 (9.3M) [text/plain]
Saving to: ‘cirros-0.3.0-x86_64-disk.img’

100%[===========================================================================================================================>] 97,61,280    118KB/s   in 73s

2015-09-27 12:34:32 (131 KB/s) - ‘cirros-0.3.0-x86_64-disk.img’ saved [9761280/9761280]

root@OSCTRL-UA:~# ls -lrt
total 9544
-rw-r--r-- 1 root root 9761280 Oct 20  2011 cirros-0.3.0-x86_64-disk.img
-rw-r--r-- 1 root root     132 Sep 21 02:59 keystone_var
-rw-r--r-- 1 root root     128 Sep 22 00:41 admin.rc
root@OSCTRL-UA:~#

 

Create the Cirros Image,

root@OSCTRL-UA:~# glance image-create --name="CirrOS 0.3.0" --disk-format=qcow2 --container-format=bare --is-public=true < cirros-0.3.0-x86_64-disk.img
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 50bdc35edb03a38d91b1b071afb20a3c     |
| container_format | bare                                 |
| created_at       | 2015-09-27T07:08:35                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 7d19b639-6950-42dc-a64d-91c6662e0613 |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | CirrOS 0.3.0                         |
| owner            | d14d6a07f862482398b3e3e4e8d581c6     |
| protected        | False                                |
| size             | 9761280                              |
| status           | active                               |
| updated_at       | 2015-09-27T07:08:36                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+

 

List the newly created cirros image,

root@OSCTRL-UA:~# glance image-list
+--------------------------------------+--------------+-------------+------------------+---------+--------+
| ID                                   | Name         | Disk Format | Container Format | Size    | Status |
+--------------------------------------+--------------+-------------+------------------+---------+--------+
| 7d19b639-6950-42dc-a64d-91c6662e0613 | CirrOS 0.3.0 | qcow2       | bare             | 9761280 | active |
+--------------------------------------+--------------+-------------+------------------+---------+--------+
root@OSCTRL-UA:~#

 

We have successfully configured the Openstack image service and verified the installation by creating the new image. In the next article ,we will see the compute node configuration. Hope this article is informative to you.

Share it !! Be Sociable !!!

Pages: Page 1 Page 2

Filed Under: Openstack, Openstack on Ubuntu, Openstack Tutorial Tagged With: openstack, Openstack on Ubuntu

Reader Interactions

Comments

  1. desta says

    April 18, 2017 at 1:37 pm

    root@OSCTRL-UA:~# glance image-create –name=”CirrOS 0.3.0″ –disk-format=qcow2 –container-format=bare –is-public=tru
    e < cirros-0.3.0-x86_64-disk.img
    Error finding address for http://OSCTRL-UA:9292/v1/images: [Errno -2] Name or service not known

    with regards,
    Desta

    Reply
  2. obfuscatu says

    July 1, 2016 at 5:24 pm

    where the NNN have patrs 5-7 dissapeared ?!

    Reply
    • Lingeswaran R says

      July 2, 2016 at 9:25 pm

      https://unixarena.com/2015/09/openstack-configuring-the-compute-node-part-5.html

      https://unixarena.com/2015/10/openstack-configure-network-service-neutron-controller-part-6.html

      In end of the article , you can see the next & previous article links.

      Regards
      Lingesh

      Reply
  3. Neeraj says

    November 13, 2015 at 4:29 pm

    HI I am following this series to manually configure the openstack.
    I am not able to succeed through ‘keystone user-create –name=glance –pass=glance123 –email=glance@unixarena.com’.
    I am not seeing any user created in user table of keystone db with name admin and password admin123.
    (As you sourcing admin.sh with this user name and password).

    Please help

    Reply
    • Lingeswaran R says

      November 13, 2015 at 10:29 pm

      Refer – https://unixarena.com/2015/09/openstack-configuring-keystone-service-part-3.html/2

      This article is having 3 pages & u might be missed the second page.

      Regards
      Lingesh

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow UnixArena

  • Facebook
  • LinkedIn
  • Twitter

Copyright © 2026 · UnixArena ·