senlin validate_for_update faild

Bug #1682698 reported by chenyb4
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Invalid
Undecided
chenyb4

Bug Description

When i use node-update code will be use 'os/nova/server.py' do_update, this function call self.validate_for_update(new_profile) allways return False

self.validate_for_update(new_profile) code as follows:

    def validate_for_update(self, new_profile):
        non_updatables = []
        for (k, v) in new_profile.properties.items():
            if self.properties.get(k, None) != v:
                if not self.properties_schema[k].updatable:
                    non_updatables.append(k)

        if not non_updatables:
            return True

        msg = ", ".join(non_updatables)
        LOG.error(_LE("The following properties are not updatable: %s."
                      ) % msg)
        return False

In os.nova.server-1.0 type file, you can find "BLOCK_DEVICE_MAPPING_V2", "SECURITY_GROUPS" and other is don't configure "updatable=True" parameter, so will be validate_for_update allways return faild.

chenyb4 (chenyb4)
Changed in senlin:
assignee: nobody → chenyb4 (chenyb4)
Revision history for this message
Qiming Teng (tengqim) wrote :

The update to block device mapping and security groups are still not supported, I think. That is why you are getting such an error.

Revision history for this message
chenyb4 (chenyb4) wrote :

I has try again test, the error not appear. so, the bug is will be close.

Revision history for this message
chenyb4 (chenyb4) wrote :

BLOCK_DEVICE_MAPPING_V2 updateable=true configure error, so the error appear.

Changed in senlin:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.