Inconsistent uuid generation in azure_arm
- Lingua principale
- Python
- Stelle
- 2.1k
- Fork
- 931
- Merge medio
- 1g 2h
- PR unite (30g)
- 4
Descrizione
## Summary
Azure returns inconsistent casing of the resource groups name in the id string, resulting in different uuid's for the same node (depending on what calls you make).
## Detailed Information
When a node is created, the resource groups name in the id string is lower case. In subsequent calls, like in list_nodes(), for some reason Azure returns the resource groups name in upper case. This results in a different uuid from when create_node() is called. This also breaks wait_until_running(). Forcing the id string to lower case in _to_node() seems to resolve this issue.
I made the change here: https://github.com/foospidy/libcloud/commit/2682d1229466fa577d4360ababd650d777ea49f3
I'd be happy to submit a PR.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Iniziate individuando il metodo _to_node() del provider Azure ARM e confrontate il modo in cui create_node() e list_nodes() producono gli ID. Verificate che la distinzione tra maiuscole e minuscole del resource-group non cambi più l’UUID di un nodo e che wait_until_running() funzioni in modo coerente; usate il commit indicato come contesto e aggiungete o aggiornate test mirati se la struttura dei test del provider identifica una posizione adatta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- cloud
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100