Bug 1195127

Summary: [RFE] download a docker image with glance and setup it as a provider for ovirt-engine
Product: [oVirt] ovirt-engine Reporter: Sandro Bonazzola <sbonazzo>
Component: RFEsAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: low Docs Contact:
Priority: high    
Version: ---CC: amureini, bugs, dfediuck, fdeutsch, gklein, jbelka, lsurette, mgoldboi, rbalakri, sbonazzo, s.kieske, stirabos, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature
Target Release: 3.6.0Flags: rule-engine: ovirt-3.6.0+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-3.6.0-alpha1.2 Doc Type: Enhancement
Doc Text:
Installing a local glance instance cold be convenient for different reasons. Using a docker container for it simplify the process.
Story Points: ---
Clone Of:
: 1195129 (view as bug list) Environment:
Last Closed: 2016-03-11 07:20:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1195129    

Description Sandro Bonazzola 2015-02-23 07:54:04 UTC
Create a docker image with glance, with local persistent 
storage, with the CDN plugin (when its ready).
Deploy as systemd service 
as part of setup and add to engine as a provider (like glance.ovirt.org is).

Comment 1 Allon Mureinik 2015-02-23 08:38:06 UTC
(In reply to Sandro Bonazzola from comment #0)
> Create a docker image with glance, with local persistent 
> storage, with the CDN plugin (when its ready).
Do we have an RFE to track the CDN plugin?
This RFE is essentially blocked, and it would be nice to visualize it as such.

Comment 2 Simone Tiraboschi 2015-05-07 12:29:49 UTC
As far I understood it will be just upstream for its initial release so CDN plugin is not really blocking it, at lest not upstream.

Comment 3 Jiri Belka 2016-02-26 09:58:20 UTC
ok,

ovirt-engine-3.6.4-0.0.master.20160224185731.git1fcb5b6.el7.centos.noarch
docker-1.8.2-10.el7.x86_64
ovirt-engine-setup-plugin-dockerc-3.6.4-0.0.master.20160224185731.git1fcb5b6.el7.centos.noarch

...
          Application mode                        : both
          Default SAN wipe after delete           : False
          Firewall manager                        : firewalld
          Update Firewall                         : True
          Host FQDN                               : 10-34-60-141.example.com
          Deploy Glance container                 : True
          Deploy Cinder container                 : True
          Engine database secured connection      : False
          Engine database host                    : localhost
          Engine database user name               : engine
          Engine database name                    : engine
          Engine database port                    : 5432
          Engine database host name validation    : False
          Engine installation                     : True
          PKI organization                        : example.com
          Configure local Engine database         : True
          Set application as default page         : True
          Configure Apache SSL                    : True
          Configure VMConsole Proxy               : True
          Engine Host FQDN                        : 10-34-60-141.example.com
          Configure WebSocket Proxy               : True

          Please confirm installation settings (OK, Cancel) [OK]:
[ INFO  ] Stage: Transaction setup
[ INFO  ] Stopping engine service
[ INFO  ] Stopping ovirt-fence-kdump-listener service
[ INFO  ] Stopping websocket-proxy service
[ INFO  ] Stage: Misc configuration
[ INFO  ] Stage: Package installation
[ INFO  ] Stage: Misc configuration
[ INFO  ] Initializing PostgreSQL
[ INFO  ] Creating PostgreSQL 'engine' database
[ INFO  ] Configuring PostgreSQL
[ INFO  ] Pulling rabbitmq
[ INFO  ] Pulling mariadbdata
[ INFO  ] Pulling mariadbapp
[ INFO  ] Pulling keystone
[ INFO  ] Pulling cinder
[ INFO  ] Pulling glance-registry
[ INFO  ] Pulling glance-api
[ INFO  ] Creating rabbitmq
[ INFO  ] Starting rabbitmq
[ INFO  ] Creating mariadbdata
[ INFO  ] Starting mariadbdata
[ INFO  ] Creating mariadbapp
[ INFO  ] Starting mariadbapp
[ INFO  ] Creating keystone
[ INFO  ] Starting keystone
[ INFO  ] Creating cinder
[ INFO  ] Starting cinder
[ INFO  ] Creating glance-registry
[ INFO  ] Starting glance-registry
[ INFO  ] Creating glance-api
[ INFO  ] Starting glance-api
[ INFO  ] Creating/refreshing Engine database schema
[ INFO  ] Creating/refreshing Engine 'internal' domain database schema
[ INFO  ] Upgrading CA
[ INFO  ] Creating CA
[ INFO  ] Setting up ovirt-vmconsole proxy helper PKI artifacts
[ INFO  ] Setting up ovirt-vmconsole SSH PKI artifacts
[ INFO  ] Configuring WebSocket Proxy
[ INFO  ] Generating post install configuration file '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
[ INFO  ] Stage: Transaction commit
[ INFO  ] Stage: Closing up

          --== SUMMARY ==--

[WARNING] Less than 16384MB of memory is available
          SSH fingerprint: 5d:85:bc:62:f6:e2:ab:e9:1d:b1:2b:9d:e4:f5:80:0a
          Internal CA 88:31:3B:4B:51:0A:76:B5:A7:D3:1C:9B:ED:2A:88:AD:46:B2:AD:1C
          Note! If you want to gather statistical information you can install Reports and/or DWH:
              http://www.ovirt.org/Ovirt_DWH
              http://www.ovirt.org/Ovirt_Reports
          Web access is enabled at:
              http://10-34-60-141.example.com:80/ovirt-engine
              https://10-34-60-141.example.com:443/ovirt-engine
          Please use the user 'admin@internal' and password specified in order to login

          --== END OF SUMMARY ==--

[ INFO  ] Enabling Docker
[ INFO  ] Starting engine service
[ INFO  ] Restarting httpd
[ INFO  ] Restarting ovirt-vmconsole proxy service
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160225153703-3pnta8.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160225154604-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ INFO  ] Execution of setup completed successfully

[oVirt shell (connected)]# list storagedomains 

id         : b9b83c2e-c134-4b1b-86ba-fc514d5b9b29
name       : jb-ovirt36

id         : 5fba63b7-6014-40da-be71-bd3b1e5dd679
name       : local-glance-image-repository

id         : 072fbaa1-08f3-4a40-9f34-a5ca22dd1d74
name       : ovirt-image-repository
description: Public Glance repository for oVirt


# docker ps | grep glance
a5242c4cd673        kollaglue/centos-rdo-glance-api:kilo        "/start.sh"              18 hours ago        Up 18 hours                                           glance-api
c7844287f419        kollaglue/centos-rdo-glance-registry:kilo   "/start.sh"              18 hours ago        Up 18 hours                                           glance-registry

and VM was created with attached glanced image (previously imported).