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 !90 opened Jun 04, 2014 by Bach Dániel@bachdaniel 
  • Report abuse
Report abuse

Feature Improve Agent

  • Discussion 3
  • Commits 4
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jun 05, 2014
    circle/vm/tasks/local_agent_tasks.py
    32 with act.sub_activity('change_password'):
    33 change_password.apply_async(queue=queue, args=(vm, instance.pw))
    34 with act.sub_activity('set_time'):
    35 set_time.apply_async(queue=queue, args=(vm, time.time()))
    36 with act.sub_activity('set_hostname'):
    37 set_hostname.apply_async(
    38 queue=queue, args=(vm, instance.primary_host.hostname))
    39
    40
    24 41 @celery.task
    25 42 def agent_started(vm):
    26 from vm.models import Instance, instance_activity
    43 from vm.models import Instance, instance_activity, InstanceActivity
    27 44 instance = Instance.objects.get(id=int(vm.split('-')[-1]))
    45 initialized = InstanceActivity.objects.filter(
    46 instance=instance, activity_code='vm.Instance.agent').count()
    • Őry Máté @orymate commented Jun 05, 2014
      Owner

      exists? fixed (c47d3949)

      Edited Jun 05, 2014
      ~~`exists`?~~ fixed (c47d39493)
    Please register or sign in to reply
  • Őry Máté
    @orymate started a discussion on an old version of the diff Jun 05, 2014
    circle/vm/tasks/local_agent_tasks.py
    29 48 with instance_activity(code_suffix='agent', instance=instance) as act:
    30 49 with act.sub_activity('starting'):
    31 queue = "%s.agent" % instance.node.host.hostname
    32 print queue
    33 restart_networking.apply_async(queue=queue,
    34 args=(vm, ))
    35 change_password.apply_async(queue=queue,
    36 args=(vm, instance.pw))
    37 set_time.apply_async(queue=queue,
    38 args=(vm, time.time()))
    39 set_hostname.apply_async(queue=queue,
    40 args=(vm, instance.primary_host.hostname))
    50 pass
    51 if not initialized:
    52 send_init_commands(instance, act, vm)
    53 with act.sub_activity('start_ssh'):
    • Őry Máté @orymate commented Jun 05, 2014
      Owner

      We could maybe call it access server fixed (492a0407)

      Edited Jun 05, 2014
      ~~We could maybe call it access server~~ fixed (492a04077)
    Please register or sign in to reply
  • Őry Máté @orymate commented Jun 05, 2014
    Owner

    +1

    +1
  • Bach Dániel
    @bachdaniel started a discussion on commit 492a0407 Jun 05, 2014
    • Bach Dániel @bachdaniel

      mentioned in merge request !90 (merged)

      Jun 05, 2014

      mentioned in merge request !90 (merged)

      mentioned in merge request !90
      Toggle commit list
    Please register or sign in to reply
  • Bach Dániel
    @bachdaniel started a discussion on commit c47d3949 Jun 05, 2014
    • Bach Dániel @bachdaniel

      mentioned in merge request !90 (merged)

      Jun 05, 2014

      mentioned in merge request !90 (merged)

      mentioned in merge request !90
      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
Bach Dániel
Assignee
Bach Dániel @bachdaniel
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: circle/cloud!90