1. 11 Dec, 2013 2 commits
    • Dimitris Aragiorgis's avatar
      Allow modification of arbitrary params for ext · c5c72215
      Dimitris Aragiorgis authored
      Disks of ext template are allowed to have arbitrary parameters
      stored in the Disk object's params slot. Those parameters can be
      passed during creation of a new disk, either in LUInstanceCreate()
      or in LUInsanceSetParams(). Still those parameters can not be
      changed afterwards. With this patch we override this limitation.
      
      Currently, for the other disk templates we allow modifying only
      'name' and 'mode'. Therefore, we introduce new constants
      MODIFIABLE_IDISK_PARAM* to include those params. If any other
      parameter is passed, _VerifyDiskModification() will raise an
      exception.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      c5c72215
    • Dimitris Aragiorgis's avatar
      Do not clear disk.params in UpgradeConfig() · 54666867
      Dimitris Aragiorgis authored
      Commits 5dbee5ea and cce46164 fix disk upgrades concerning params
      slot. Since 2.7 params slot should be empty and gets filled
      any time needed.
      
      Still ext template allows passing arbitrary params per disk.
      These params should be saved in config file for future use.
      For instance if we have the shared-filer provider and we
      specify shared_dir param during instance create, this param
      is needed when we want to attach the disk e.g., during
      retrieving instance info. If it gets overridden during a daemon
      restart or a config reload we fail to get the instance's info.
      
      To avoid such a failure, we set params slot to an empty dict
      only if params not found in the first place.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      54666867
  2. 09 Dec, 2013 2 commits
  3. 05 Dec, 2013 4 commits
  4. 04 Dec, 2013 2 commits
  5. 03 Dec, 2013 1 commit
  6. 02 Dec, 2013 2 commits
  7. 28 Nov, 2013 1 commit
  8. 27 Nov, 2013 4 commits
  9. 26 Nov, 2013 1 commit
  10. 18 Nov, 2013 2 commits
  11. 06 Nov, 2013 3 commits
  12. 04 Nov, 2013 1 commit
  13. 30 Oct, 2013 1 commit
  14. 29 Oct, 2013 1 commit
  15. 24 Oct, 2013 1 commit
  16. 17 Oct, 2013 1 commit
  17. 16 Oct, 2013 4 commits
  18. 11 Oct, 2013 1 commit
  19. 08 Oct, 2013 1 commit
  20. 07 Oct, 2013 2 commits
  21. 27 Sep, 2013 3 commits