Creation of backup driver fails for EBS with region formatting issue
- Langage dominant
- Python
- Étoiles
- 2.1k
- Forks
- 931
- Merge moyen
- 1 j 2 h
- PR mergées (30 j)
- 4
Description
## Summary
Creating an EBS backup driver fails with region formatting issue
## Detailed Information
apache-libcloud version 3.4.1 python 3.6
>>> cls = libcloud.get_driver(libcloud.DriverType.BACKUP, libcloud.DriverType.BACKUP.EBS)
>>> backup_driver = cls(constants.CONFIG["aws_access_key"], constants.CONFIG["aws_secret_key"], region="ap-south-1")
Traceback (most recent call last):
File "", line 1, in
File "/home/ec2-user/.local/lib/python3.6/site-packages/libcloud/backup/drivers/ebs.py", line 59, in __init__
self.connection.host = HOST % (region)
TypeError: not all arguments converted during string formatting
Unlike other AWS drivers, EBS does not have specific driver type per region. I suspect this is causing the issue.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par libcloud/backup/drivers/ebs.py à la ligne du constructeur indiquée dans le traceback, puis reproduisez la création du pilote de sauvegarde EBS avec region="ap-south-1". Comparez la gestion de region à cet endroit avec celle des autres pilotes AWS mentionnés dans l’issue. Le travail est terminé lorsque le pilote s’initialise correctement pour cette région sans le TypeError de formatage.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, python
- Domaine
- cloud
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100