Browse Source

Extract main python client to the top

C and Windows clients were moved to directory 'contrib'.

Change-Id: I2a31a965d38f4f750abf9c8dfa90b249dbe1aeba
Ruslan Kamaldinov 4 years ago
parent
commit
79c7da668a
91 changed files with 317 additions and 95 deletions
  1. 23
    0
      .gitignore
  2. 47
    0
      CONTRIBUTING.rst
  3. 4
    0
      HACKING.rst
  4. 176
    0
      LICENSE
  5. 10
    0
      MANIFEST.in
  6. 18
    22
      README.rst
  7. 0
    0
      contrib/c-demo-agent/Makefile
  8. 0
    0
      contrib/c-demo-agent/Readme
  9. 0
    0
      contrib/c-demo-agent/amqp.h
  10. 0
    0
      contrib/c-demo-agent/amqp_framing.h
  11. 0
    0
      contrib/c-demo-agent/amqp_ssl_socket.h
  12. 0
    0
      contrib/c-demo-agent/amqp_tcp_socket.h
  13. 0
    0
      contrib/c-demo-agent/lcfg_static.c
  14. 0
    0
      contrib/c-demo-agent/lcfg_static.h
  15. 0
    0
      contrib/c-demo-agent/librabbitmq.a
  16. 0
    0
      contrib/c-demo-agent/murano-agent.c
  17. 0
    0
      contrib/c-demo-agent/murano-agent.conf.example
  18. 0
    0
      contrib/c-demo-agent/producer.c
  19. 0
    0
      contrib/c-demo-agent/utils.c
  20. 0
    0
      contrib/c-demo-agent/utils.h
  21. 0
    0
      contrib/windows-agent/ExecutionPlanGenerator/App.config
  22. 0
    0
      contrib/windows-agent/ExecutionPlanGenerator/ExecutionPlanGenerator.csproj
  23. 0
    0
      contrib/windows-agent/ExecutionPlanGenerator/Program.cs
  24. 0
    0
      contrib/windows-agent/ExecutionPlanGenerator/Properties/AssemblyInfo.cs
  25. 0
    0
      contrib/windows-agent/ExecutionPlanGenerator/packages.config
  26. 0
    0
      contrib/windows-agent/Tools/NuGet.exe
  27. 0
    0
      contrib/windows-agent/WindowsAgent.sln
  28. 0
    0
      contrib/windows-agent/WindowsAgent/App.config
  29. 0
    0
      contrib/windows-agent/WindowsAgent/ExecutionPlan.cs
  30. 0
    0
      contrib/windows-agent/WindowsAgent/MqMessage.cs
  31. 0
    0
      contrib/windows-agent/WindowsAgent/PlanExecutor.cs
  32. 0
    0
      contrib/windows-agent/WindowsAgent/Program.cs
  33. 0
    0
      contrib/windows-agent/WindowsAgent/Properties/AssemblyInfo.cs
  34. 0
    0
      contrib/windows-agent/WindowsAgent/RabbitMqClient.cs
  35. 0
    0
      contrib/windows-agent/WindowsAgent/SampleExecutionPlan.json
  36. 0
    0
      contrib/windows-agent/WindowsAgent/ServiceManager.cs
  37. 0
    0
      contrib/windows-agent/WindowsAgent/WindowsAgent.csproj
  38. 0
    0
      contrib/windows-agent/WindowsAgent/WindowsService.cs
  39. 0
    0
      contrib/windows-agent/WindowsAgent/WindowsServiceInstaller.cs
  40. 0
    0
      contrib/windows-agent/WindowsAgent/packages.config
  41. 0
    0
      contrib/windows-agent/packages/repositories.config
  42. 0
    0
      etc/agent.conf
  43. 0
    0
      init.d/murano-agent-deb
  44. 0
    0
      init.d/murano-agent-el6
  45. 0
    0
      muranoagent/__init__.py
  46. 0
    0
      muranoagent/app.py
  47. 0
    0
      muranoagent/cmd/__init__.py
  48. 0
    0
      muranoagent/cmd/run.py
  49. 0
    0
      muranoagent/common/__init__.py
  50. 0
    0
      muranoagent/common/messaging/__init__.py
  51. 0
    0
      muranoagent/common/messaging/message.py
  52. 0
    0
      muranoagent/common/messaging/mqclient.py
  53. 0
    0
      muranoagent/common/messaging/subscription.py
  54. 0
    0
      muranoagent/config.py
  55. 0
    0
      muranoagent/exceptions.py
  56. 0
    0
      muranoagent/execution_plan_queue.py
  57. 0
    0
      muranoagent/execution_plan_runner.py
  58. 0
    0
      muranoagent/execution_result.py
  59. 0
    0
      muranoagent/executors/__init__.py
  60. 0
    0
      muranoagent/executors/application/__init__.py
  61. 0
    0
      muranoagent/files_manager.py
  62. 0
    0
      muranoagent/openstack/__init__.py
  63. 0
    0
      muranoagent/openstack/common/__init__.py
  64. 0
    0
      muranoagent/openstack/common/config/__init__.py
  65. 0
    0
      muranoagent/openstack/common/config/generator.py
  66. 0
    0
      muranoagent/openstack/common/eventlet_backdoor.py
  67. 0
    0
      muranoagent/openstack/common/gettextutils.py
  68. 0
    0
      muranoagent/openstack/common/importutils.py
  69. 0
    0
      muranoagent/openstack/common/jsonutils.py
  70. 0
    0
      muranoagent/openstack/common/local.py
  71. 0
    0
      muranoagent/openstack/common/log.py
  72. 0
    0
      muranoagent/openstack/common/loopingcall.py
  73. 0
    0
      muranoagent/openstack/common/service.py
  74. 0
    0
      muranoagent/openstack/common/threadgroup.py
  75. 0
    0
      muranoagent/openstack/common/timeutils.py
  76. 0
    0
      muranoagent/script_runner.py
  77. 0
    0
      muranoagent/tests/__init__.py
  78. 0
    0
      muranoagent/win32.py
  79. 0
    0
      openstack-common.conf
  80. 0
    3
      python-agent/MANIFEST.in
  81. 0
    10
      python-agent/README.rst
  82. 0
    58
      python-agent/tox.ini
  83. 0
    0
      requirements.txt
  84. 0
    0
      setup-centos.sh
  85. 0
    0
      setup.cfg
  86. 0
    0
      setup.py
  87. 0
    0
      setup.sh
  88. 2
    2
      test-requirements.txt
  89. 0
    0
      tools/config/generate_sample.sh
  90. 0
    0
      tools/install_venv_common.py
  91. 37
    0
      tox.ini

+ 23
- 0
.gitignore View File

@@ -15,3 +15,26 @@ build/
15 15
 # ReSharper is a .NET coding add-in
16 16
 _ReSharper*/
17 17
 *.[Rr]e[Ss]harper
18
+
19
+
20
+#IntelJ Idea
21
+.idea/
22
+
23
+#virtualenv
24
+.venv/
25
+
26
+#Build results
27
+build/
28
+dist/
29
+*.egg-info/
30
+*.egg
31
+.tox
32
+AUTHORS
33
+ChangeLog
34
+
35
+#Python
36
+*.pyc
37
+
38
+#Translation build
39
+*.mo
40
+

+ 47
- 0
CONTRIBUTING.rst View File

@@ -0,0 +1,47 @@
1
+======================
2
+Contributing to Murano
3
+======================
4
+
5
+If you're interested in contributing to the Murano project,
6
+the following will help get you started.
7
+
8
+Contributor License Agreement
9
+=============================
10
+
11
+In order to contribute to the Murano project, you need to have
12
+signed OpenStack's contributor's agreement:
13
+
14
+* http://wiki.openstack.org/HowToContribute
15
+* http://wiki.openstack.org/CLA
16
+
17
+
18
+Project Hosting Details
19
+=======================
20
+
21
+* Bug tracker
22
+    https://launchpad.net/murano
23
+
24
+* Mailing list (prefix subjects with ``[Murano]`` for faster responses)
25
+    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
26
+
27
+* Wiki
28
+    https://wiki.openstack.org/wiki/Murano
29
+
30
+* IRC channel
31
+    * #murano at FreeNode
32
+
33
+    * https://wiki.openstack.org/wiki/Meetings#Murano_meeting
34
+
35
+* Code Hosting
36
+    * https://git.openstack.org/cgit/stackforge/murano
37
+
38
+    * https://git.openstack.org/cgit/stackforge/murano-agent
39
+
40
+    * https://git.openstack.org/cgit/stackforge/murano-dashboard
41
+
42
+    * https://git.openstack.org/cgit/stackforge/python-muranoclient
43
+
44
+* Code Review
45
+    * https://review.openstack.org/#/q/murano+AND+status:+open,n,z
46
+
47
+    * https://wiki.openstack.org/wiki/GerritWorkflow

+ 4
- 0
HACKING.rst View File

@@ -0,0 +1,4 @@
1
+Style Commandments
2
+==================
3
+
4
+Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

+ 176
- 0
LICENSE View File

@@ -0,0 +1,176 @@
1
+
2
+                                 Apache License
3
+                           Version 2.0, January 2004
4
+                        http://www.apache.org/licenses/
5
+
6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+   1. Definitions.
9
+
10
+      "License" shall mean the terms and conditions for use, reproduction,
11
+      and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+      "Licensor" shall mean the copyright owner or entity authorized by
14
+      the copyright owner that is granting the License.
15
+
16
+      "Legal Entity" shall mean the union of the acting entity and all
17
+      other entities that control, are controlled by, or are under common
18
+      control with that entity. For the purposes of this definition,
19
+      "control" means (i) the power, direct or indirect, to cause the
20
+      direction or management of such entity, whether by contract or
21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+      outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+      "You" (or "Your") shall mean an individual or Legal Entity
25
+      exercising permissions granted by this License.
26
+
27
+      "Source" form shall mean the preferred form for making modifications,
28
+      including but not limited to software source code, documentation
29
+      source, and configuration files.
30
+
31
+      "Object" form shall mean any form resulting from mechanical
32
+      transformation or translation of a Source form, including but
33
+      not limited to compiled object code, generated documentation,
34
+      and conversions to other media types.
35
+
36
+      "Work" shall mean the work of authorship, whether in Source or
37
+      Object form, made available under the License, as indicated by a
38
+      copyright notice that is included in or attached to the work
39
+      (an example is provided in the Appendix below).
40
+
41
+      "Derivative Works" shall mean any work, whether in Source or Object
42
+      form, that is based on (or derived from) the Work and for which the
43
+      editorial revisions, annotations, elaborations, or other modifications
44
+      represent, as a whole, an original work of authorship. For the purposes
45
+      of this License, Derivative Works shall not include works that remain
46
+      separable from, or merely link (or bind by name) to the interfaces of,
47
+      the Work and Derivative Works thereof.
48
+
49
+      "Contribution" shall mean any work of authorship, including
50
+      the original version of the Work and any modifications or additions
51
+      to that Work or Derivative Works thereof, that is intentionally
52
+      submitted to Licensor for inclusion in the Work by the copyright owner
53
+      or by an individual or Legal Entity authorized to submit on behalf of
54
+      the copyright owner. For the purposes of this definition, "submitted"
55
+      means any form of electronic, verbal, or written communication sent
56
+      to the Licensor or its representatives, including but not limited to
57
+      communication on electronic mailing lists, source code control systems,
58
+      and issue tracking systems that are managed by, or on behalf of, the
59
+      Licensor for the purpose of discussing and improving the Work, but
60
+      excluding communication that is conspicuously marked or otherwise
61
+      designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
64
+      on behalf of whom a Contribution has been received by Licensor and
65
+      subsequently incorporated within the Work.
66
+
67
+   2. Grant of Copyright License. Subject to the terms and conditions of
68
+      this License, each Contributor hereby grants to You a perpetual,
69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+      copyright license to reproduce, prepare Derivative Works of,
71
+      publicly display, publicly perform, sublicense, and distribute the
72
+      Work and such Derivative Works in Source or Object form.
73
+
74
+   3. Grant of Patent License. Subject to the terms and conditions of
75
+      this License, each Contributor hereby grants to You a perpetual,
76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+      (except as stated in this section) patent license to make, have made,
78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
79
+      where such license applies only to those patent claims licensable
80
+      by such Contributor that are necessarily infringed by their
81
+      Contribution(s) alone or by combination of their Contribution(s)
82
+      with the Work to which such Contribution(s) was submitted. If You
83
+      institute patent litigation against any entity (including a
84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+      or a Contribution incorporated within the Work constitutes direct
86
+      or contributory patent infringement, then any patent licenses
87
+      granted to You under this License for that Work shall terminate
88
+      as of the date such litigation is filed.
89
+
90
+   4. Redistribution. You may reproduce and distribute copies of the
91
+      Work or Derivative Works thereof in any medium, with or without
92
+      modifications, and in Source or Object form, provided that You
93
+      meet the following conditions:
94
+
95
+      (a) You must give any other recipients of the Work or
96
+          Derivative Works a copy of this License; and
97
+
98
+      (b) You must cause any modified files to carry prominent notices
99
+          stating that You changed the files; and
100
+
101
+      (c) You must retain, in the Source form of any Derivative Works
102
+          that You distribute, all copyright, patent, trademark, and
103
+          attribution notices from the Source form of the Work,
104
+          excluding those notices that do not pertain to any part of
105
+          the Derivative Works; and
106
+
107
+      (d) If the Work includes a "NOTICE" text file as part of its
108
+          distribution, then any Derivative Works that You distribute must
109
+          include a readable copy of the attribution notices contained
110
+          within such NOTICE file, excluding those notices that do not
111
+          pertain to any part of the Derivative Works, in at least one
112
+          of the following places: within a NOTICE text file distributed
113
+          as part of the Derivative Works; within the Source form or
114
+          documentation, if provided along with the Derivative Works; or,
115
+          within a display generated by the Derivative Works, if and
116
+          wherever such third-party notices normally appear. The contents
117
+          of the NOTICE file are for informational purposes only and
118
+          do not modify the License. You may add Your own attribution
119
+          notices within Derivative Works that You distribute, alongside
120
+          or as an addendum to the NOTICE text from the Work, provided
121
+          that such additional attribution notices cannot be construed
122
+          as modifying the License.
123
+
124
+      You may add Your own copyright statement to Your modifications and
125
+      may provide additional or different license terms and conditions
126
+      for use, reproduction, or distribution of Your modifications, or
127
+      for any such Derivative Works as a whole, provided Your use,
128
+      reproduction, and distribution of the Work otherwise complies with
129
+      the conditions stated in this License.
130
+
131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
132
+      any Contribution intentionally submitted for inclusion in the Work
133
+      by You to the Licensor shall be under the terms and conditions of
134
+      this License, without any additional terms or conditions.
135
+      Notwithstanding the above, nothing herein shall supersede or modify
136
+      the terms of any separate license agreement you may have executed
137
+      with Licensor regarding such Contributions.
138
+
139
+   6. Trademarks. This License does not grant permission to use the trade
140
+      names, trademarks, service marks, or product names of the Licensor,
141
+      except as required for reasonable and customary use in describing the
142
+      origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+   7. Disclaimer of Warranty. Unless required by applicable law or
145
+      agreed to in writing, Licensor provides the Work (and each
146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+      implied, including, without limitation, any warranties or conditions
149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
151
+      appropriateness of using or redistributing the Work and assume any
152
+      risks associated with Your exercise of permissions under this License.
153
+
154
+   8. Limitation of Liability. In no event and under no legal theory,
155
+      whether in tort (including negligence), contract, or otherwise,
156
+      unless required by applicable law (such as deliberate and grossly
157
+      negligent acts) or agreed to in writing, shall any Contributor be
158
+      liable to You for damages, including any direct, indirect, special,
159
+      incidental, or consequential damages of any character arising as a
160
+      result of this License or out of the use or inability to use the
161
+      Work (including but not limited to damages for loss of goodwill,
162
+      work stoppage, computer failure or malfunction, or any and all
163
+      other commercial damages or losses), even if such Contributor
164
+      has been advised of the possibility of such damages.
165
+
166
+   9. Accepting Warranty or Additional Liability. While redistributing
167
+      the Work or Derivative Works thereof, You may choose to offer,
168
+      and charge a fee for, acceptance of support, warranty, indemnity,
169
+      or other liability obligations and/or rights consistent with this
170
+      License. However, in accepting such obligations, You may act only
171
+      on Your own behalf and on Your sole responsibility, not on behalf
172
+      of any other Contributor, and only if You agree to indemnify,
173
+      defend, and hold each Contributor harmless for any liability
174
+      incurred by, or claims asserted against, such Contributor by reason
175
+      of your accepting any such warranty or additional liability.
176
+

+ 10
- 0
MANIFEST.in View File

@@ -0,0 +1,10 @@
1
+include AUTHORS
2
+include README.rst
3
+include ChangeLog
4
+include LICENSE
5
+
6
+exclude .gitignore
7
+exclude .gitreview
8
+
9
+global-exclude *.pyc
10
+exclude contrib/*

+ 18
- 22
README.rst View File

@@ -5,7 +5,7 @@ developers and cloud administrators to publish various cloud-ready
5 5
 applications in a browsable‎ categorised catalog, which may be used by the
6 6
 cloud users (including the inexperienced ones) to pick-up the needed
7 7
 applications and services and composes the reliable environments out of them
8
-in a “push-the-button” manner.
8
+in a "push-the-button" manner.
9 9
 
10 10
 murano-agent
11 11
 ============
@@ -17,24 +17,20 @@ described in `Unified Agent <https://wiki.openstack.org/wiki/Murano/UnifiedAgent
17 17
 
18 18
 Project Resources
19 19
 -----------------
20
-* `Murano at Launchpad <http://launchpad.net/murano>`__
21
-* `Wiki <https://wiki.openstack.org/wiki/Murano>`__
22
-* `Code Review <https://review.openstack.org/>`__
23
-* `Sources <https://wiki.openstack.org/wiki/Murano/SourceCode>`__
24
-* `Developers Guide <http://murano-docs.github.io/latest/developers-guide/content/ch02.html>`__
25
-
26
-How To Participate
27
-------------------
28
-If you would like to ask some questions or make proposals, feel free to reach
29
-us on #murano IRC channel at FreeNode. Typically somebody from our team will
30
-be online at IRC from 6:00 to 20:00 UTC. You can also contact Murano community
31
-directly by openstack-dev@lists.openstack.org adding [Murano] to a subject.
32
-
33
-We’re holding public weekly meetings on Tuesdays at 17:00 UTC
34
-on #openstack-meeting-alt IRC channel at FreeNode.
35
-
36
-If you want to contribute either to docs or to code, simply send us change
37
-request via `gerrit <https://review.openstack.org/>`__.
38
-You can `file bugs <https://bugs.launchpad.net/murano/+filebug>`__ and
39
-`register blueprints <https://blueprints.launchpad.net/murano/+addspec>`__ on
40
-Launchpad.
20
+
21
+Project status, bugs, and blueprints are tracked on Launchpad:
22
+
23
+  https://launchpad.net/murano
24
+
25
+Developer documentation can be found here:
26
+
27
+  https://murano.readthedocs.org
28
+
29
+Additional resources are linked from the project wiki page:
30
+
31
+  https://wiki.openstack.org/wiki/Murano
32
+
33
+License
34
+-------
35
+
36
+Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0

c-demo-agent/Makefile → contrib/c-demo-agent/Makefile View File


c-demo-agent/Readme → contrib/c-demo-agent/Readme View File


c-demo-agent/amqp.h → contrib/c-demo-agent/amqp.h View File


c-demo-agent/amqp_framing.h → contrib/c-demo-agent/amqp_framing.h View File


c-demo-agent/amqp_ssl_socket.h → contrib/c-demo-agent/amqp_ssl_socket.h View File


c-demo-agent/amqp_tcp_socket.h → contrib/c-demo-agent/amqp_tcp_socket.h View File


c-demo-agent/lcfg_static.c → contrib/c-demo-agent/lcfg_static.c View File


c-demo-agent/lcfg_static.h → contrib/c-demo-agent/lcfg_static.h View File


c-demo-agent/librabbitmq.a → contrib/c-demo-agent/librabbitmq.a View File


c-demo-agent/murano-agent.c → contrib/c-demo-agent/murano-agent.c View File


c-demo-agent/murano-agent.conf.example → contrib/c-demo-agent/murano-agent.conf.example View File


c-demo-agent/producer.c → contrib/c-demo-agent/producer.c View File


c-demo-agent/utils.c → contrib/c-demo-agent/utils.c View File


c-demo-agent/utils.h → contrib/c-demo-agent/utils.h View File


windows-agent/ExecutionPlanGenerator/App.config → contrib/windows-agent/ExecutionPlanGenerator/App.config View File


windows-agent/ExecutionPlanGenerator/ExecutionPlanGenerator.csproj → contrib/windows-agent/ExecutionPlanGenerator/ExecutionPlanGenerator.csproj View File


windows-agent/ExecutionPlanGenerator/Program.cs → contrib/windows-agent/ExecutionPlanGenerator/Program.cs View File


windows-agent/ExecutionPlanGenerator/Properties/AssemblyInfo.cs → contrib/windows-agent/ExecutionPlanGenerator/Properties/AssemblyInfo.cs View File


windows-agent/ExecutionPlanGenerator/packages.config → contrib/windows-agent/ExecutionPlanGenerator/packages.config View File


windows-agent/Tools/NuGet.exe → contrib/windows-agent/Tools/NuGet.exe View File


windows-agent/WindowsAgent.sln → contrib/windows-agent/WindowsAgent.sln View File


windows-agent/WindowsAgent/App.config → contrib/windows-agent/WindowsAgent/App.config View File


windows-agent/WindowsAgent/ExecutionPlan.cs → contrib/windows-agent/WindowsAgent/ExecutionPlan.cs View File


windows-agent/WindowsAgent/MqMessage.cs → contrib/windows-agent/WindowsAgent/MqMessage.cs View File


windows-agent/WindowsAgent/PlanExecutor.cs → contrib/windows-agent/WindowsAgent/PlanExecutor.cs View File


windows-agent/WindowsAgent/Program.cs → contrib/windows-agent/WindowsAgent/Program.cs View File


windows-agent/WindowsAgent/Properties/AssemblyInfo.cs → contrib/windows-agent/WindowsAgent/Properties/AssemblyInfo.cs View File


windows-agent/WindowsAgent/RabbitMqClient.cs → contrib/windows-agent/WindowsAgent/RabbitMqClient.cs View File


windows-agent/WindowsAgent/SampleExecutionPlan.json → contrib/windows-agent/WindowsAgent/SampleExecutionPlan.json View File


windows-agent/WindowsAgent/ServiceManager.cs → contrib/windows-agent/WindowsAgent/ServiceManager.cs View File


windows-agent/WindowsAgent/WindowsAgent.csproj → contrib/windows-agent/WindowsAgent/WindowsAgent.csproj View File


windows-agent/WindowsAgent/WindowsService.cs → contrib/windows-agent/WindowsAgent/WindowsService.cs View File


windows-agent/WindowsAgent/WindowsServiceInstaller.cs → contrib/windows-agent/WindowsAgent/WindowsServiceInstaller.cs View File


windows-agent/WindowsAgent/packages.config → contrib/windows-agent/WindowsAgent/packages.config View File


windows-agent/packages/repositories.config → contrib/windows-agent/packages/repositories.config View File


python-agent/etc/agent.conf → etc/agent.conf View File


python-agent/init.d/murano-agent-deb → init.d/murano-agent-deb View File


python-agent/init.d/murano-agent-el6 → init.d/murano-agent-el6 View File


python-agent/muranoagent/__init__.py → muranoagent/__init__.py View File


python-agent/muranoagent/app.py → muranoagent/app.py View File


python-agent/muranoagent/cmd/__init__.py → muranoagent/cmd/__init__.py View File


python-agent/muranoagent/cmd/run.py → muranoagent/cmd/run.py View File


python-agent/muranoagent/common/__init__.py → muranoagent/common/__init__.py View File


python-agent/muranoagent/common/messaging/__init__.py → muranoagent/common/messaging/__init__.py View File


python-agent/muranoagent/common/messaging/message.py → muranoagent/common/messaging/message.py View File


python-agent/muranoagent/common/messaging/mqclient.py → muranoagent/common/messaging/mqclient.py View File


python-agent/muranoagent/common/messaging/subscription.py → muranoagent/common/messaging/subscription.py View File


python-agent/muranoagent/config.py → muranoagent/config.py View File


python-agent/muranoagent/exceptions.py → muranoagent/exceptions.py View File


python-agent/muranoagent/execution_plan_queue.py → muranoagent/execution_plan_queue.py View File


python-agent/muranoagent/execution_plan_runner.py → muranoagent/execution_plan_runner.py View File


python-agent/muranoagent/execution_result.py → muranoagent/execution_result.py View File


python-agent/muranoagent/executors/__init__.py → muranoagent/executors/__init__.py View File


python-agent/muranoagent/executors/application/__init__.py → muranoagent/executors/application/__init__.py View File


python-agent/muranoagent/files_manager.py → muranoagent/files_manager.py View File


python-agent/muranoagent/openstack/__init__.py → muranoagent/openstack/__init__.py View File


python-agent/muranoagent/openstack/common/__init__.py → muranoagent/openstack/common/__init__.py View File


python-agent/muranoagent/openstack/common/config/__init__.py → muranoagent/openstack/common/config/__init__.py View File


python-agent/muranoagent/openstack/common/config/generator.py → muranoagent/openstack/common/config/generator.py View File


python-agent/muranoagent/openstack/common/eventlet_backdoor.py → muranoagent/openstack/common/eventlet_backdoor.py View File


python-agent/muranoagent/openstack/common/gettextutils.py → muranoagent/openstack/common/gettextutils.py View File


python-agent/muranoagent/openstack/common/importutils.py → muranoagent/openstack/common/importutils.py View File


python-agent/muranoagent/openstack/common/jsonutils.py → muranoagent/openstack/common/jsonutils.py View File


python-agent/muranoagent/openstack/common/local.py → muranoagent/openstack/common/local.py View File


python-agent/muranoagent/openstack/common/log.py → muranoagent/openstack/common/log.py View File


python-agent/muranoagent/openstack/common/loopingcall.py → muranoagent/openstack/common/loopingcall.py View File


python-agent/muranoagent/openstack/common/service.py → muranoagent/openstack/common/service.py View File


python-agent/muranoagent/openstack/common/threadgroup.py → muranoagent/openstack/common/threadgroup.py View File


python-agent/muranoagent/openstack/common/timeutils.py → muranoagent/openstack/common/timeutils.py View File


python-agent/muranoagent/script_runner.py → muranoagent/script_runner.py View File


python-agent/muranoagent/tests/__init__.py → muranoagent/tests/__init__.py View File


python-agent/muranoagent/win32.py → muranoagent/win32.py View File


python-agent/openstack-common.conf → openstack-common.conf View File


+ 0
- 3
python-agent/MANIFEST.in View File

@@ -1,3 +0,0 @@
1
-include requirements.txt
2
-prune windows-agent
3
-prune python-agent

+ 0
- 10
python-agent/README.rst View File

@@ -1,10 +0,0 @@
1
-Murano Python Agent README
2
-==========================
3
-Murano Python Agent is a VM-side guest agent that accepts commands from
4
-Murano Conductor and executes them. Python Agent works on Linux and
5
-uses new execution plan format described in `Unified Agent blueprint
6
-<https://wiki.openstack.org/wiki/Murano/UnifiedAgent>`_
7
-
8
-SEE ALSO
9
---------
10
-* `Murano <https://wiki.openstack.org/wiki/Murano>`__

+ 0
- 58
python-agent/tox.ini View File

@@ -1,58 +0,0 @@
1
-[tox]
2
-envlist = py26,py27,pep8,pyflakes
3
-
4
-[testenv]
5
-setenv = VIRTUAL_ENV={envdir}
6
-         NOSE_WITH_OPENSTACK=1
7
-         NOSE_OPENSTACK_COLOR=1
8
-         NOSE_OPENSTACK_RED=0.05
9
-         NOSE_OPENSTACK_YELLOW=0.025
10
-         NOSE_OPENSTACK_SHOW_ELAPSED=1
11
-deps = -r{toxinidir}/requirements.txt
12
-       -r{toxinidir}/test-requirements.txt
13
-commands = nosetests
14
-
15
-[testenv:pep8]
16
-deps = pep8==1.3.3
17
-commands = pep8 --repeat --show-source muranoagent setup.py
18
-
19
-[testenv:venv]
20
-commands = {posargs}
21
-
22
-[testenv:cover]
23
-commands = nosetests --cover-erase --cover-package=muranoagent --with-xcoverage
24
-
25
-[tox:jenkins]
26
-downloadcache = ~/cache/pip
27
-
28
-[testenv:jenkins26]
29
-basepython = python2.6
30
-setenv = NOSE_WITH_XUNIT=1
31
-deps = file://{toxinidir}/.cache.bundle
32
-
33
-[testenv:jenkins27]
34
-basepython = python2.7
35
-setenv = NOSE_WITH_XUNIT=1
36
-deps = file://{toxinidir}/.cache.bundle
37
-
38
-[testenv:jenkinscover]
39
-deps = file://{toxinidir}/.cache.bundle
40
-setenv = NOSE_WITH_XUNIT=1
41
-commands = nosetests --cover-erase --cover-package=muranoagent --with-xcoverage
42
-
43
-[testenv:jenkinsvenv]
44
-deps = file://{toxinidir}/.cache.bundle
45
-setenv = NOSE_WITH_XUNIT=1
46
-commands = {posargs}
47
-
48
-[testenv:pyflakes]
49
-deps = flake8
50
-commands = flake8
51
-
52
-[flake8]
53
-# H301 one import per line
54
-# H302 import only modules
55
-ignore = H301,H302,F401
56
-show-source = true
57
-builtins = _
58
-exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools

python-agent/requirements.txt → requirements.txt View File


python-agent/setup-centos.sh → setup-centos.sh View File


python-agent/setup.cfg → setup.cfg View File


python-agent/setup.py → setup.py View File


python-agent/setup.sh → setup.sh View File


python-agent/test-requirements.txt → test-requirements.txt View File

@@ -1,4 +1,5 @@
1
-# Needed for testing
1
+hacking>=0.8.0,<0.9
2
+
2 3
 unittest2
3 4
 coverage>=3.6
4 5
 fixtures>=0.3.14
@@ -7,7 +8,6 @@ nose
7 8
 nose-exclude
8 9
 openstack.nose_plugin>=0.7
9 10
 nosehtmloutput>=0.0.3
10
-pep8==1.3.3
11 11
 sphinx>=1.1.2
12 12
 requests>=1.1
13 13
 testtools>=0.9.32

python-agent/tools/config/generate_sample.sh → tools/config/generate_sample.sh View File


python-agent/tools/install_venv_common.py → tools/install_venv_common.py View File


+ 37
- 0
tox.ini View File

@@ -0,0 +1,37 @@
1
+[tox]
2
+envlist = py26,py27,pep8
3
+minversion = 1.6
4
+skipsdist = True
5
+
6
+[testenv]
7
+setenv = VIRTUAL_ENV={envdir}
8
+         NOSE_WITH_OPENSTACK=1
9
+         NOSE_OPENSTACK_COLOR=1
10
+         NOSE_OPENSTACK_RED=0.05
11
+         NOSE_OPENSTACK_YELLOW=0.025
12
+         NOSE_OPENSTACK_SHOW_ELAPSED=1
13
+deps = -r{toxinidir}/requirements.txt
14
+       -r{toxinidir}/test-requirements.txt
15
+commands = nosetests
16
+
17
+[testenv:pep8]
18
+commands =
19
+    flake8 {posargs}
20
+
21
+[testenv:venv]
22
+commands = {posargs}
23
+
24
+[testenv:cover]
25
+commands = nosetests --cover-erase --cover-package=muranoagent --with-xcoverage
26
+
27
+[testenv:pyflakes]
28
+deps = flake8
29
+commands = flake8
30
+
31
+[flake8]
32
+# H301 one import per line
33
+# H302 import only modules
34
+ignore = H231,H233,H301,H302,H306,H404,F401
35
+show-source = true
36
+builtins = _
37
+exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools

Loading…
Cancel
Save