Skip to content

Crowbar does not know about newly plugged disks #1596

@vuntz

Description

@vuntz

If you plug a disk to a node after having allocated the node, then crowbar will never know about the disk.

The chef-client run that occurs every 15 minutes will update node["block_device"], but the code that translates node["block_device"] to node["crowbar"]["disks"] is done in the transition method of deployer_service.rb (barclamp-deployer).

The issue is that all the barclamps that want to know about the disks will look at node["crowbar"]["disks"] because there's some additional needed information (and unneeded devices listed in block_device are filtered).

This can be worked around by forcing a transition:

crowbar crowbar transition <node> foo
crowbar crowbar transition <node> ready

But that's obviously suboptimal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions