Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 2. Creating and downloading the GCS credentials file


The Block Storage service needs your Google credentials in order to access and use Google Cloud for backups. You can provide these credentials to Block Storage by creating a service account key:

  1. Log in to the Google developer console (http://console.developers.google.com) using your Google account.
  2. Click the Credentials tab, click Create credentials, and select Service account key from the Create credentials drop-down list.

    creds create

  3. On the Create service account key page, select the service account that you want the Block Storage service to use from the Service account drop-down list:

    creds json compengine

  4. On the Create service account key page, select the JSON radio button from the Key type section and click Create.

    The browser downloads the key to the default download location:

    creds key

  5. Open the file and note the value of the project_id parameter:

    {
      "type": "service_account",
      "project_id": "cloud-backup-1370",
    ...
    Copy to Clipboard Toggle word wrap

    You use the /etc/cinder/Cloud-Backup.json key in Chapter 3, Create the Block Storage environment file in particular, the value of project_id, and the absolute path to the file.

  6. Copy the key file to /etc/cinder/ on any Controller node and change the user, group, and permissions of the key file to match that of /etc/cinder/cinder.conf. This ensures that the Block Storage service can use the key file:

    # cp Cloud-Backup.json /etc/cinder/
    # chown cinder:cinder /etc/cinder/Cloud-Backup.json
    # chmod 0600 /etc/cinder/Cloud-Backup.json
    Copy to Clipboard Toggle word wrap
  7. Copy the key file to /etc/cinder/Cloud-Backup.json_ on each Controller node. Use rsync -a to preserve the permissions and ownership settings:

    # rsync -a /etc/cinder/Cloud-Backup.json root@CONTROLLERHOST:/etc/cinder/
    Copy to Clipboard Toggle word wrap

    Replace CONTROLLERHOST with the hostname of a target Controller.

Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat