Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute: Lists and gets detailed availability zone information #327

Closed
wants to merge 1 commit into from

Conversation

dixudx
Copy link
Contributor

@dixudx dixudx commented May 2, 2017

For #320

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

@coveralls
Copy link

coveralls commented May 2, 2017

Coverage Status

Coverage increased (+0.06%) to 69.628% when pulling 2634be5 on dixudx:compute_availability_zones into 9a5595b on gophercloud:master.

@jtopjian
Copy link
Contributor

jtopjian commented Jun 2, 2017

@dixudx Is this something you're still working on? I took a look and the JSON structure you have in the testing fixture is incorrect -- it's missing the hostname object under hosts. hosts is composed of individual hosts, which are then composed of nova services. Here's the output from my test server:

{                                                                    
    "availabilityZoneInfo": [                                        
        {                                                            
            "hosts": {                                               
                "packstack-standard-ocata.novalocal": {              
                    "nova-cert": {                                   
                        "active": true,                              
                        "available": true,                           
                        "updated_at": "2017-06-02T05:31:57.000000"   
                    },                                               
                    "nova-conductor": {                              
                        "active": true,                              
                        "available": true,                           
                        "updated_at": "2017-06-02T05:31:52.000000"   
                    },                                               
                    "nova-consoleauth": {                            
                        "active": true,                              
                        "available": true,                           
                        "updated_at": "2017-06-02T05:31:56.000000"   
                    },                                               
                    "nova-scheduler": {                              
                        "active": true,                              
                        "available": true,                           
                        "updated_at": "2017-06-02T05:31:52.000000"   
                    }                                                
                }                                                    
            },                                                       
            "zoneName": "internal",                                  
            "zoneState": {                                           
                "available": true                                    
            }                                                        
        },                                                           
        {                                                            
            "hosts": {                                               
                "packstack-standard-ocata.novalocal": {              
                    "nova-compute": {                                
                        "active": true,                              
                        "available": true,                           
                        "updated_at": "2017-06-02T05:31:51.000000"   
                    }                                                
                }                                                    
            },                                                       
            "zoneName": "nova",                                      
            "zoneState": {                                           
                "available": true                                    
            }                                                        
        }                                                            
    ]                                                                
}                                                                    

@dixudx
Copy link
Contributor Author

dixudx commented Jun 2, 2017

@jtopjian Will still work on this. Yeah, you're right. The host information is comprised of host and service objects.

@jtopjian
Copy link
Contributor

jtopjian commented Jan 8, 2018

Superseded by #704

@jtopjian jtopjian closed this Jan 8, 2018
@dixudx dixudx deleted the compute_availability_zones branch January 8, 2018 06:08
cardoe pushed a commit to cardoe/gophercloud that referenced this pull request Aug 27, 2020
…pe_errors

Identity Auth Scope: fix flipped User Domin ID/Name values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants