Observe reality before updating a resource

Registered by Anant Patil on 2015-10-14

Implement mechanism to get the changes from real world before updating the resource. Currently properties from old template which are stored in DB are compared before updating the resource. But it may happen that the resource changes in the reality. This BP proposes that the resource state be taken from reality then compared and updated.

Blueprint information

Status:
Complete
Approver:
Sergey Kraynev
Priority:
Medium
Drafter:
Anant Patil
Direction:
Approved
Assignee:
Peter Razumovsky
Definition:
Approved
Series goal:
Accepted for pike
Implementation:
Implemented
Milestone target:
None
Started by
Sergey Kraynev on 2015-10-14
Completed by
Rico Lin on 2017-08-14

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/get-reality-for-resources,n,z

Addressed by: https://review.openstack.org/232368
    Use reality instead of old template properties

Addressed by: https://review.openstack.org/244065
    [WIP] Add basic get_reality implementation

Addressed by: https://review.openstack.org/244066
    [WIP] Add get_reality implementation for Server

Addressed by: https://review.openstack.org/248682
    [WIP] Add get_reality implementation to Flavor

Addressed by: https://review.openstack.org/249844
    [WIP] Add get_reality implementation to ServerGroup

Addressed by: https://review.openstack.org/249871
    [WIP] Add get_reality implementation to KeyPair

Addressed by: https://review.openstack.org/250370
    [WIP] Add get_reality implementation to HostAggregate

Addressed by: https://review.openstack.org/250451
    [WIP] Add get_reality implementation to VolumeType

Addressed by: https://review.openstack.org/250666
    [WIP] EncryptedVolumeType: get_reality implementation

Addressed by: https://review.openstack.org/250705
    [WIP] Add get_reality implementation to Image

Addressed by: https://review.openstack.org/252976
    [WIP] Add get_reality implementation to Order

Addressed by: https://review.openstack.org/254211
    [WIP] Nova::FloatingIP get_live_state implementation

Addressed by: https://review.openstack.org/254226
    [WIP] Barbican::Secret get_live_state implementation

Addressed by: https://review.openstack.org/254260
    [WIP] Designate::Domain get_live_state implementation

Addressed by: https://review.openstack.org/255253
    [WIP] Designate::Record get_live_state implementation

Addressed by: https://review.openstack.org/255287
    [WIP] Neutron::Net get_live_state implementation

Addressed by: https://review.openstack.org/255753
    [WIP] Neutron::Subnet get_live_state implementation

Addressed by: https://review.openstack.org/255776
    [WIP] Neutron::Router get_live_state implementation

Addressed by: https://review.openstack.org/255799
    [WIP] Neutron::ExtraRoute get_live_state implementation

Addressed by: https://review.openstack.org/256264
    [WIP] Neutron::FloatingIP get_live_state implementation

Addressed by: https://review.openstack.org/259047
    Neutron::FIPA get_live_state implementation

Addressed by: https://review.openstack.org/259074
    Neutron::Port get_live_state implementation

Addressed by: https://review.openstack.org/261445
    WIP volume get_live_state

Addressed by: https://review.openstack.org/264861
    Refactor get_live_state using during update

Addressed by: https://review.openstack.org/266910
    vpnservice.py get_live_state implementation

Addressed by: https://review.openstack.org/271992
    firewall.py get_live_state implementation

Addressed by: https://review.openstack.org/273026
    metering.py get_live_state implementation

Addressed by: https://review.openstack.org/273055
    Neutron ProviderNet get_live_state implementation

Addressed by: https://review.openstack.org/273550
    Neutron::SecurityGroup get_live_state implement

Addressed by: https://review.openstack.org/274073
    sahara/templates.py get_live_state implementation

Addressed by: https://review.openstack.org/274648
    Sahara::ImageRegistry get_live_state implement

Addressed by: https://review.openstack.org/274654
    Sahara::DataSource get_live_state implementation

Addressed by: https://review.openstack.org/274658
    Sahara::JobBinary get_live_state implementation

Addressed by: https://review.openstack.org/274691
    Sahara::Cluster get_live_state implementation

Addressed by: https://review.openstack.org/275344
    Manila::SecurityService get_live_state implement

Addressed by: https://review.openstack.org/275363
    Manila::ShareType get_live_state implement

Addressed by: https://review.openstack.org/275377
    Manila::ShareNetwork get_live_state implement

Addressed by: https://review.openstack.org/275864
    Swift container get_live_state implementation

Addressed by: https://review.openstack.org/276151
    Manila::Share get_live_state implementation

Addressed by: https://review.openstack.org/276729
    Separate get_live_state on several methods

Addressed by: https://review.openstack.org/276730
    EncryptedVolumeType get_live_state implementation

Addressed by: https://review.openstack.org/276756
    Add note about cron trigger live state impl

Addressed by: https://review.openstack.org/283179
    Add parse_live_resource_data for zaqar queue

Addressed by: https://review.openstack.org/300973
    Keystone::Endpoint get_live_state implementation

Addressed by: https://review.openstack.org/300982
    Keystone::Group get_live_state implementation

Addressed by: https://review.openstack.org/301017
    Keystone::Project get_live_state implementation

Addressed by: https://review.openstack.org/301025
    Keystone::Region get_live_state implementation

Addressed by: https://review.openstack.org/301027
    Keystone::Role get_live_state implementation

Addressed by: https://review.openstack.org/301028
    Keystone::Service get_live_state implementation

Addressed by: https://review.openstack.org/303428
    Keystone role assignment get_live_state implement

Addressed by: https://review.openstack.org/303479
    Keystone::User get_live_state implementation

Addressed by: https://review.openstack.org/305396
    Magnum::Bay observe reality implementation

Addressed by: https://review.openstack.org/313499
    Ceilometer::Alarm observe reality implementation

Addressed by: https://review.openstack.org/313513
    Ceilometer::CombinationAlarm observe reality implementation

Addressed by: https://review.openstack.org/314488
    Ceilometer::GnocchiResourcesAlarm observe reality implementation

Addressed by: https://review.openstack.org/314517
    Ceilometer::GnocchiAggregationByMetricsAlarm observe reality implementation

Addressed by: https://review.openstack.org/314540
    Ceilometer::GnocchiAggregationByResourcesAlarm observe reality implementation

Addressed by: https://review.openstack.org/357910
    Improve validation in OS::Monasca::Notification

Gerrit topic: https://review.openstack.org/#q,topic:bug/1615947,n,z

Addressed by: https://review.openstack.org/393370
    OS::Trove::Instance observe reality implementation

Addressed by: https://review.openstack.org/394450
    Refactor OS::Trove::Instance resource tests

Addressed by: https://review.openstack.org/395960
    Observe reality for OS::Keystone::Domain

Addressed by: https://review.openstack.org/397105
    Default implementation parse_live_resource_data

Addressed by: https://review.openstack.org/461302
    Add converge flag in stack update for observing on reality

Addressed by: https://review.openstack.org/462805
    Add get reality for magnum cluster

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.