Commit Graph

26 Commits

Author SHA1 Message Date
Stan Lagun ef3b0d4f7d Option to configure pip source for murano-agent
With this small changes it becomes possible to instruct murano to
provision murano-agent of version other than latest, or from
custom git branch or from a http source.

Use cases:
* Use agent with custom modifications that are not available in
  PyPI version
* Development of new agent features - agent can be installed from
  the private git repo
* Environments without internet connectivity

Change-Id: Icbea95abf070ef35781474a54461cc34bb9927af
2018-01-17 02:39:01 +00:00
Zuul c1613c2bc8 Merge "Murano-engine side implementation of agent message signing" 2018-01-17 02:32:27 +00:00
Stan Lagun 6f6897c132 Murano-engine side implementation of agent message signing
Change-Id: I1a23d185ac19f10c98d66f29a6930dfd17793954
Partial-Blueprint: message-signing
2018-01-15 16:56:54 +00:00
Stan Lagun dfc51525f3 Remove python-dev from list of preinstalled packages
python-dev package causes cloud-init to fail on Fedora-based
distros because the package is called python-devel there.
Since this package is present in python-pip recommended dependencies
and thus going to be installed anyway, there is no need to include
it explicitly. With this fix it becomes possible to use bare
Fedora cloud image with murano.

Change-Id: I276839b9ba772d8f0a6bac975b204b0308839170
2018-01-10 20:17:07 +00:00
Artem Tiumentcev ec4c71fd80 Fixed opportunity run muranoagent twice
The variable name $PIDNAME doesnt exist, therefore we can
start murano-agent twice or more.

Closes-bug: #1663194
Change-Id: I3056b89645d517375dfdecf2eceaebb249d24e6e
2017-02-09 12:58:09 +00:00
Artem Tiumentcev ace26c5db3 Fixed Shellcheck's warnings in murano-agent
Shellcheck complains like this:
meta/io.murano/Resources/murano-agent|26 col 3 warning|
In POSIX sh, 'local' is undefined. [SC2039] [sh/shellcheck]
And add quotes to prevent word splitting.

Change-Id: I99a296ebc33a101bcd0e4f9d824d3f217ec7c438
Closes-Bug: #1622384
2016-10-20 12:46:37 +03:00
Kirill Zaitsev ab4d479e9d Better detect and configure murano-agent pre-installed on image
After I8d90d33dc0a1c36ac4524f8f3b82223c23829126 a bug has been
introduced in setting agent's config: it was only set if there was no
'muranoagent' binary in PATH. This patch fixes this behaviour.
The patch also improves murano-agent detection, by setting PATH to a
wider number of directories, when checking for murano-agent binary.
It also improves support of different pre-built
images by not restricting path to murano-agent binary to a specific path.
Contains a bunch of comments with clarifications.

Change-Id: Ie4c498b5546aabaab2070400452765c62cb561a3
Closes-Bug: #1570962
2016-09-12 01:38:33 +03:00
Jose Phillips 087db8cc5b Set the desired hostname to a instance using murano instead of Murano Pattern
Without this patch all the instances are deployed with the following
hostname: Murano-RandomID-HOSTNAME-randomID

With this Patch the new instances will be deployed just with the hostname.

This is more benefit on Windows instances where the recommended
length for the hostname is 15 characters.

Change-Id: I8c9867481071b2ae09c3ea17cba4c535759aaf58
Closes-Bug: #1605786
2016-09-05 08:02:06 +00:00
Jose Phillips d8ccb215be Fix issue with deployment with cloudbase-init on Windows
Change-Id: Ie7908035d7b8b5c763239cca837b436dde115174
Closes-Bug: #1595863
2016-06-24 12:37:09 -05:00
Jenkins 42baab20f2 Merge "Change incorrect murano-agent bin file location" 2016-05-23 12:16:13 +00:00
Stan Lagun 091b4d1d18 Allow insecure SSL communications with RabbitMQ
Add insecure option to [rabbitmq] section of murano.conf

This is a partial fix because it improves Engine <-> RMQ
 communications but the same problem exist on
 Agent <-> RMQ side

 Partial-Bug: #1578421

Change-Id: I55207c3016da12be45918a7dc33795abf69627b4
2016-05-11 11:19:43 -07:00
Nikolay Starodubtsev 15df963544 Change incorrect murano-agent bin file location
During cloud-init related improvements murano-agent location was
specified for the pip-style installation. This leads to unability
to deploy the apps on the images with pre-installed murano-agent
without network. This commit create a symlink to the pre-installed agent
in place where pip usually installs packages.

Change-Id: I8d90d33dc0a1c36ac4524f8f3b82223c23829126
Closes-Bug: #1570962
2016-05-10 14:10:02 +03:00
Konstantin Snihyr 21e877c22d Pass [rabbitmq]/ca_certs file to murano-spawned instance
Change-Id: I0d7a66b66d47c5996df8047225dcd9323d328412
Closes-Bug: #1568172
2016-05-04 18:41:53 +03:00
Jenkins 6005f4d912 Merge "Don't use bash eval for Linux.runCommand" 2016-03-31 17:06:56 +00:00
Stan Lagun 699aa62378 Don't use bash eval for Linux.runCommand
Linux.runCommand method used to pass script
in a command line argument and evaluated it using
"eval". This approach failed when the script contained
input redirection.

With this fix script is passed as a file which is specified
as an entry point in execution plan.
Also we supported explicit files in execution plan but not
for the script entry point. This was fixed as well.

Change-Id: Ifd15fc57b08e33ed61cd2765613cd705ce12a5f2
Closes-Bug: #1562954
2016-03-31 17:09:19 +03:00
Omar Shykhkerimov 54e115c60b Do not upgrade packages with cloud-init
This patch deletes 'package_upgrade: true' option from cloud-init confs.
It caused upgrading of all the packages in the images spawned by murano.
This made spawning VMs slow and in certain cases caused
dpkg locks be still in place when murano-agent attempted to
install packages

Change-Id: I440d2985f9122dad53c81b15148e60df4e7e9583
Closes-Bug: 1548857
2016-03-30 08:07:11 +00:00
Henar Muñoz Frutos 7a0a172880 Introducing ConfLangInstance
The yaml file allows for installing murano-agent and chef
and puppet by cloud-init

Change-Id: Ia16270d67eeff50d41d8f879e7b4ad0a1037d4b1
Targets-blueprint: conf-lang-instance
2016-01-25 12:41:04 +01:00
Henar Muñoz Frutos e089f7989e Install murano-agent by cloud-init
Adding a murano-init script to install murano-agent by cloud init
in the LinuxMuranoInstance.

Change-Id: I080fe14a61b9af468ba1ae2e26dd85196a563449
Targets-blueprint: cloud-init-deployable-agent
2016-01-20 15:10:00 +00:00
Dmytro Dovbii 2bd560aa7b Fix Linux.runCommand method
Added `eval` command to execution plan, which allows
to correctly execute user input

Change-Id: Ie0469a7a464b246dc76acf6259b12eeb9a126563
Closes-Bug: #1523915
2015-12-08 15:45:37 +02:00
Lin Yang 46d993702f Add Apache 2.0 license info to core library
Change-Id: Ifa74af1b7c9f3f7a90273def336932ae67509955
Closes-Bug: #1506102
2015-10-15 15:47:03 +08:00
Dmytro Dovbii 0c755f672f Return full structure of std info in Linux class methods
This patch adds to 'putFile' and 'runCommand' methods ability to return
full structure containing stdout, stderr and exitcode instead of
returning just exitCode, which worked incorrectly.

New optional parameter 'options' was added to allow specifing custom
options execution plans.

Change-Id: Icb2b9c5cc72a4555ccee85c471547041be86e2fc
Closes-Bug: #1504211
2015-10-09 15:44:37 +03:00
Jenkins 09e1de2a11 Merge "BOM symbol removed from Agent-v1.template" 2015-08-31 14:50:58 +00:00
Alexey Khivin 666cfb53b0 BOM symbol removed from Agent-v1.template
Murano engine can not convert unicode file to an ascii string.
Without BOM symbol file can be read as an ascii text file

It is rather temporary fix than a comprehensive solution

Change-Id: Ifec342bfa223c255f5c532560bcb247cf21757ad
Partial-Bug: #1490468
2015-08-31 15:49:50 +03:00
Dmytro Dovbii 471695817b Simple instance configuration
This patch adds to Murano core-library new
functionality allowing to simplify the process of software
configuration.

Implements bp: simple-software-configuration

Change-Id: I80f2c15f2d45398df2a519b54a50c2ba8c3a8be2
2015-08-28 21:50:01 +03:00
Serg Melikyan ca9aae1554 Fixed name of the log file on VM
Small fix for images with pre-created /etc/murano directory

Change-Id: Ie5738b89efba7619f0d4e30500407ff0daea4f6a
2014-04-22 18:45:55 +04:00
Stan Lagun ac6a0dedec Added 'destroy' method that is called on deleted instances
Added ability to modify/remove data from structures (like Heat
templates) via jsonpatch and thus added ability to clean up Heat
resources that was obtained by deleted instances

Closes bug: #1296624

Change-Id: I4db226a5ab00ff363f8b5d44a5d690df942622e8
2014-04-08 16:32:29 +04:00