Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !147 opened Aug 01, 2014 by Őry Máté@orymate 
  • Report abuse
Report abuse

Featura Mount Store Op

✅

Closes #220 (closed)

  • Discussion 9
  • Commits 9
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Guba Sándor @gubasandor commented Aug 06, 2014
    Owner

    Umount would be nice 👍

    Umount would be nice :+1:
  • Őry Máté
    @orymate started a discussion on an old version of the diff Aug 07, 2014
    circle/vm/operations.py
    917 921  
    918 922  
    919 923 register_operation(PasswordResetOperation)
    924
    925
    926 class MountStoreOperation(InstanceOperation):
    927 activity_code_suffix = 'mount_store'
    928 id = 'mount_store'
    929 name = _("mount store")
    930 description = _(
    931 "This operation attaches your personal file store. Other users who "
    932 "has acces to this machine can see these files as well."
    • Őry Máté @orymate commented Aug 07, 2014
      Owner

      have fixed

      Edited Aug 08, 2014
      ~~have~~ fixed
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Aug 07, 2014
    circle/vm/operations.py
    931 "This operation attaches your personal file store. Other users who "
    932 "has acces to this machine can see these files as well."
    933 )
    934 acl_level = "owner"
    935 required_perms = ()
    936
    937 def check_precond(self):
    938 super(MountStoreOperation, self).check_precond()
    939 if self.instance.status not in ["RUNNING"]:
    940 raise self.instance.WrongStateError(self.instance)
    941
    942 try:
    943 latest_deploy = InstanceActivity.objects.filter(
    944 instance=self.instance, activity_code="vm.Instance.deploy"
    945 ).latest("finished").finished
    946 except InstanceActivity.DoesNotExist: # no deploy no agent
    • Őry Máté @orymate commented Aug 07, 2014
      Owner

      this check could be in a separate AgentOperationMixin fixed

      Edited Aug 08, 2014
      ~~this check could be in a separate AgentOperationMixin~~ fixed
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Aug 08, 2014
    circle/vm/operations.py
    924
    925
    926 class MountStoreOperation(InstanceOperation):
    927 activity_code_suffix = 'mount_store'
    928 id = 'mount_store'
    929 name = _("mount store")
    930 description = _(
    931 "This operation attaches your personal file store. Other users who "
    932 "has acces to this machine can see these files as well."
    933 )
    934 acl_level = "owner"
    935 required_perms = ()
    936
    937 def check_precond(self):
    938 super(MountStoreOperation, self).check_precond()
    939 if self.instance.status not in ["RUNNING"]:
    • Őry Máté @orymate commented Aug 08, 2014
      Owner

      accept_states is checked fixed

      Edited Aug 08, 2014
      ~~`accept_states` is checked~~ fixed
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Aug 08, 2014
    Last updated by Őry Máté Aug 08, 2014
    circle/vm/operations.py
    930 description = _(
    931 "This operation attaches your personal file store. Other users who "
    932 "has acces to this machine can see these files as well."
    933 )
    934 acl_level = "owner"
    935 required_perms = ()
    936
    937 def check_precond(self):
    938 super(MountStoreOperation, self).check_precond()
    939 if self.instance.status not in ["RUNNING"]:
    940 raise self.instance.WrongStateError(self.instance)
    941
    942 try:
    943 latest_deploy = InstanceActivity.objects.filter(
    944 instance=self.instance, activity_code="vm.Instance.deploy"
    945 ).latest("finished").finished
    • Őry Máté @orymate commented Aug 08, 2014
      Owner

      ??? This is always true if the instance is in running state, but does not ensure that it is running (failed deploy is also a positive match, or the instance could be stopped meanwhile). fixed

      Edited Aug 08, 2014
      ~~??? This is always true if the instance is in running state, but does not ensure that it is running (failed deploy is also a positive match, or the instance could be stopped meanwhile).~~ fixed
    • Kálmán Viktor @kviktor commented Aug 08, 2014
      Owner

      Line 939?

      Line 939?
    • Őry Máté @orymate commented Aug 08, 2014
      Owner

      No, the marked line. I didn't catch that the result is used in the next filter until I removed it. The try-except block mislead me, as this shouldn't ever fail if the check above is passing (apart from race conditions).

      No, the marked line. I didn't catch that the result is used in the next filter until I removed it. The try-except block mislead me, as this shouldn't ever fail if the check above is passing (apart from race conditions).
    Please register or sign in to reply
  • Őry Máté @orymate commented Aug 08, 2014
    Owner

    +1 if works (I don't have store in my devenv)

    +1 if works (I don't have store in my devenv)
  • Őry Máté @orymate commented Aug 12, 2014
    Owner

    urlsplit("http://szia.hu:8111").hostname fixed (3f86ff11)

    Edited Aug 14, 2014
    ~~`urlsplit("http://szia.hu:8111").hostname`~~ fixed (3f86ff119ad6da14eb969f2bd885d7a6697acece)
  • Bach Dániel
    @bachdaniel started a discussion on commit 3f86ff11 Aug 14, 2014
    • Bach Dániel @bachdaniel

      mentioned in merge request !147 (merged)

      Aug 14, 2014

      mentioned in merge request !147 (merged)

      mentioned in merge request !147
      Toggle commit list
    Please register or sign in to reply
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
3
3 participants
Reference: circle/cloud!147