cn:ccr:cloud:cloud_multiregione:installazione
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cn:ccr:cloud:cloud_multiregione:installazione [2014/09/11 13:35] – fzani@infn.it | cn:ccr:cloud:cloud_multiregione:installazione [2014/11/24 10:24] (current) – fzani@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Installazione di una nuova regione in INFN Cloud ====== | ||
| + | ===== File per autenticazione Keystone ===== | ||
| + | export OS_TENANT_NAME=admin\\ | ||
| + | export OS_USERNAME=admin\\ | ||
| + | export OS_PASSWORD=< | ||
| + | export OS_AUTH_URL=" | ||
| + | export OS_CACERT=/ | ||
| + | export OS_REGION_NAME=< | ||
| + | \\ | ||
| + | Il certificato Keystone_INFN_CA.pem è \\ | ||
| + | |||
| + | -----BEGIN CERTIFICATE-----\\ | ||
| + | MIICaDCCAdGgAwIBAgIJAIRxL0gdXhJiMA0GCSqGSIb3DQEBBQUAME0xCzAJBgNV\\ | ||
| + | BAYTAklUMQ4wDAYDVQQIDAVJdGFseTENMAsGA1UECgwESU5GTjENMAsGA1UECwwE\\ | ||
| + | TE5HUzEQMA4GA1UEAwwHTE5HUyBDQTAeFw0xNDAxMDgwODQ2MjlaFw0xNzAxMDcw\\ | ||
| + | ODQ2MjlaME0xCzAJBgNVBAYTAklUMQ4wDAYDVQQIDAVJdGFseTENMAsGA1UECgwE\\ | ||
| + | SU5GTjENMAsGA1UECwwETE5HUzEQMA4GA1UEAwwHTE5HUyBDQTCBnzANBgkqhkiG\\ | ||
| + | 9w0BAQEFAAOBjQAwgYkCgYEAxL3BJqHs5qXR3Xfxi86z84G5x2oxO7wtqIVztf2w\\ | ||
| + | LEicFlTJiqtlrg66NhMKOcmNCP12pbKJNSYgox1OzFVVmR09PwPImK/ | ||
| + | fFCxygNvCDLzlXhx/ | ||
| + | GRMCAwEAAaNQME4wHQYDVR0OBBYEFEvGGkxFxH0a4ds/ | ||
| + | IwQYMBaAFEvGGkxFxH0a4ds/ | ||
| + | hvcNAQEFBQADgYEAdEkNu3s2xkNC3sufWC3scacPm8TV2g7s42YqVs0OaTcGbH3Y\\ | ||
| + | TwcI+AlFzKtk0nxGLnJH/ | ||
| + | 7IWlGeAF6i/ | ||
| + | -----END CERTIFICATE-----\\ | ||
| + | |||
| + | ===== Utilizzo del KeyStone nazionale ===== | ||
| + | |||
| + | [[cn: | ||
| + | |||
| + | ===== Guidelines per la creazione endpoint ===== | ||
| + | |||
| + | - non devi creare i servizi su keystone ma devi usare quelli che ci sono gia` | ||
| + | |||
| + | | ||
| + | +----------------------------------+----------+--------------+--------------------------------+ | ||
| + | | id | | ||
| + | +----------------------------------+----------+--------------+--------------------------------+ | ||
| + | | 0eaf959bb77f467a86de0af3fd496cbf | cinder | ||
| + | | c65c355e8b2f41ba940224cccffcc153 | cinderv2 | | ||
| + | | ab86a2e85a10433b992b9c521a7b62f9 | glance | ||
| + | | a7fc3ee278fc4335af037f9d12d7bda9 | keystone | | ||
| + | | 285a0837f7764ec39c010008c20d9fd5 | neutron | ||
| + | | b27150005a694c2390735440c062d9eb | | ||
| + | | a6e2a12512464bd99c4815cc1fc1b5ae | swift | object-store | OpenStack Object Store Service | | ||
| + | +----------------------------------+----------+--------------+--------------------------------+ | ||
| + | |||
| + | - quando crei gli utenti di servizio, appendici il nome della sede, ad esempio: | ||
| + | |||
| + | root@keystone-infn: | ||
| + | | ad0ad189797245b59c55e48f034d4a40 | cinder-lngs | ||
| + | | ab5d9b23f674488ba016bb09c8ea90df | glance-lngs | ||
| + | | f2b917b178e14c87b53d93a9dc850c77 | neutron-lngs | ||
| + | | 0b741ff52266440aa1487dbdeb2981a9 | | ||
| + | |||
| + | - vanno anche aggiunti al tenant service come admin | ||
| + | keystone user-role-add --user=< | ||
| + | |||
| + | - se vuoi appoggiarti alla dashboard qui ai lngs: https:// | ||
| + | istanziane una tu | ||
| + | |||
| + | - mi sa che gli ultimi aggiornamenti di havana accettano header html fino a 16K. Altrimenti, almeno per glance | ||
| + | la patch e` descritta qui: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | - quando crei gli endpoint, ricordati di mettere la regione, es. | ||
| + | |||
| + | keystone --os-region-name=rm2 endpoint-create --service-id=ab86a2e85a10433b992b9c521a7b62f9 --publicurl=http:// | ||
| + | |||
| + | - se vuoi usare swift copiati l' | ||
| + | - se vuoi usare swift come back-end per glance, in / | ||
| + | |||
| + | < | ||
| + | # Which backend scheme should Glance use by default is not specified | ||
| + | # in a request to add a new image to Glance? Known schemes are determined | ||
| + | # by the known_stores option below. | ||
| + | # Default: ' | ||
| + | # | ||
| + | default_store = swift | ||
| + | |||
| + | ........ | ||
| + | |||
| + | # ============ Swift Store Options ============================= | ||
| + | |||
| + | # Version of the authentication service to use | ||
| + | # Valid versions are ' | ||
| + | swift_store_auth_version = 2 | ||
| + | |||
| + | # Address where the Swift authentication service lives | ||
| + | # Valid schemes are ' | ||
| + | # If no scheme specified, | ||
| + | # For swauth, use something like ' | ||
| + | swift_store_auth_address = https:// | ||
| + | swift_store_endpoint_type = publicURL | ||
| + | swift_store_auth_insecure = True | ||
| + | |||
| + | # User to authenticate against the Swift authentication service | ||
| + | # If you use Swift authentication service, set it to ' | ||
| + | # where ' | ||
| + | # is a user in that account | ||
| + | swift_store_user = service: | ||
| + | |||
| + | # Auth key for the user authenticating against the | ||
| + | # Swift authentication service | ||
| + | swift_store_key = < | ||
| + | |||
| + | # Container within the account that the account should use | ||
| + | # for storing images in Swift | ||
| + | swift_store_container = glance | ||
| + | |||
| + | # Do we create the container if it does not exist? | ||
| + | swift_store_create_container_on_put = True | ||
| + | |||
| + | # What size, in MB, should Glance start chunking image files | ||
| + | # and do a large object manifest in Swift? By default, this is | ||
| + | # the maximum object size in Swift, which is 5GB | ||
| + | swift_store_large_object_size = 5120 | ||
| + | |||
| + | # When doing a large object manifest, what size, in MB, should | ||
| + | # Glance write chunks to Swift? This amount of data is written | ||
| + | # to a temporary disk buffer during the process of chunking | ||
| + | # the image file, and the default is 200MB | ||
| + | swift_store_large_object_chunk_size = 200 | ||
| + | |||
| + | # Whether to use ServiceNET to communicate with the Swift storage servers. | ||
| + | # (If you aren't RACKSPACE, leave this False!) | ||
| + | # | ||
| + | # To use ServiceNET for authentication, | ||
| + | # `swift_store_auth_address` with ' | ||
| + | # Ex. https:// | ||
| + | swift_enable_snet = False | ||
| + | |||
| + | # If set to True enables multi-tenant storage mode which causes Glance images | ||
| + | # to be stored in tenant specific Swift accounts. | ||
| + | # | ||
| + | |||
| + | # A list of swift ACL strings that will be applied as both read and | ||
| + | # write ACLs to the containers created by Glance in multi-tenant | ||
| + | # mode. This grants the specified tenants/ | ||
| + | # to all newly created image objects. The standard swift ACL string | ||
| + | # formats are allowed, including: | ||
| + | # < | ||
| + | # < | ||
| + | # *:< | ||
| + | # Multiple ACLs can be combined using a comma separated list, for | ||
| + | # example: swift_store_admin_tenants = service: | ||
| + | # | ||
| + | |||
| + | # The region of the swift endpoint to be used for single tenant. This setting | ||
| + | # is only necessary if the tenant has multiple swift endpoints. | ||
| + | # | ||
| + | |||
| + | swift_store_region = <region name> | ||
| + | |||
| + | # If set to False, disables SSL layer compression of https swift requests. | ||
| + | # Setting to ' | ||
| + | # in a compressed format, eg qcow2. If set to True, enables SSL layer | ||
| + | # compression (provided it is supported by the target swift proxy). | ||
| + | # | ||
| + | </ | ||
| + | |||
| + | ===== Setup ===== | ||
| + | |||
| + | http:// | ||
