12135 Commits

Author SHA1 Message Date
jaredevantabor
90a45c8fc3 CTiT -> adhoc modules should allow the user to add new modules
the adhoc module field was not setup to allow users to input
additional options.
2017-04-17 15:48:41 -07:00
Alan Rominger
7dd69a36d8 Merge pull request #6017 from AlanCoding/supervisor_verbosity
Add supervisorctl logs
2017-04-13 11:07:41 -04:00
AlanCoding
6f0a8949a6 Add supervisorctl logs
In some systems, the tower service process may not have sufficient
permissions to communicate with the supervisorctl socket, in which
case an automated restart will not be possible.
2017-04-12 16:46:58 -04:00
Chris Meyers
817ca503e8 Merge pull request #6002 from chrismeyersfsu/fix-5984
lock projects on project sync
2017-04-12 13:25:51 -04:00
Chris Meyers
70fafe75d2 clean up commented code 2017-04-12 11:42:31 -04:00
Chris Meyers
d1eba4b607 log lock errors and test it 2017-04-12 11:41:11 -04:00
Michael Abashian
5e9522322c Merge pull request #5998 from mabashian/5947-copy-move-host-pagination
Fixed copy/move groups/hosts pagination bug
2017-04-12 10:23:54 -04:00
Chris Meyers
7919c47370 put lock file in project root dir 2017-04-12 09:36:15 -04:00
Ryan Petrello
f6510dbd4a Merge pull request #5983 from ryanpetrello/release_3.1.3
Be more restrictive in catching LDAP exceptions.
2017-04-11 16:52:53 -04:00
Ryan Petrello
d1eb33bca0 Be more restrictive in catching LDAP exceptions.
django-auth-ldap can throw exceptions, like TypeError if it's
misconfigured.  If we encounter an exception attempting to log into an
LDAP server, log it and move on (otherwise, an uncaught exception will
cause local login to fail, too).

see: #5933
2017-04-11 16:43:26 -04:00
Chris Meyers
648aa470d7 lock projects on project sync
* Use filesystem, blocking, locks to prevent two project syncs for the
same project from running the project update playbook at the same time.
2017-04-11 15:47:46 -04:00
Aaron Tan
9027616420 Merge pull request #5989 from jangsutsr/5986_prevent_unexpected_callback_module_attribute_warning
Prevent unexpected callback module attribute warning
2017-04-11 14:54:38 -04:00
Michael Abashian
34c278fef5 Merge pull request #5996 from mabashian/5972-single-select-survey
Optional single select survey question with default bug fix
2017-04-11 13:25:32 -04:00
Michael Abashian
59b8ba2a1c Fixed copy/move groups/hosts pagination bug 2017-04-11 13:22:41 -04:00
Aaron Tan
6884e44bb3 Unit test added. 2017-04-11 11:40:47 -04:00
Matthew Jones
645c2dbbc6 Switch uwsgi to only listen on local interface
Previously it would listen systemwide on 0.0.0.0:8050
2017-04-11 10:55:20 -04:00
Matthew Jones
518e7cc896 Merge pull request #5987 from ansible/version_protection_check
Protect cluster nodes after an upgrade
2017-04-11 10:37:29 -04:00
Shane McDonald
6b06e741e0 Update pot files
Steps taken:

$ make docker-compose-test

Create /root/.config/zanata.ini (Obtained from https://translate.engineering.redhat.com/dashboard/settings/client)

Update .pot files:

$ make pot
$ make languages

Push to Zanata:

python tools/scripts/manage_translations.py push --both --lang es
2017-04-10 20:08:34 -04:00
Bill Nottingham
2360f5effe Spanish translation from alberto@oforte.net. 2017-04-10 18:53:37 -04:00
Michael Abashian
9a678c72dc Fixed bug where optional single select survey questions with a default value couldn't be skipped 2017-04-10 17:13:42 -04:00
Matthew Jones
b1c839ea62 Refactor service reloading unit tests
Make sure these are consistent with the more flexible utility commands
2017-04-10 15:37:45 -04:00
Matthew Jones
ea8b78ca49 Protect cluster nodes after an upgrade
* Modify instance model to container a version number for the node
* Update that version number during the heartbeat
* If during a heartbeat any of the nodes are of a newer version then
  shutdown the current node.

The idea behind this is that if all nodes were upgraded at the same
time then at the moment of the healthcheck they should all be at the
newer version. Otherwise we put the system in a state where it can
receive the upgrade but stay down until that happens. During setup
playbook run the services will be fully restarted.
2017-04-10 15:37:33 -04:00
Aaron Tan
9b1107c054 Prevent unexpected callback module attribute warning. 2017-04-10 14:40:57 -04:00
Alan Rominger
f0102ef0ff Merge pull request #5978 from AlanCoding/hide_ev_notification
Hide extra_vars in job notifications
2017-04-07 15:33:34 -04:00
AlanCoding
3e9bc3b3d4 Hide extra_vars in job notifications 2017-04-07 11:49:03 -04:00
Matthew Jones
189ea4d7f8 Fix insights related spelling mistake that could cause failure 2017-04-06 10:57:19 -04:00
Matthew Jones
1902bab8be Fix a with_items insights scm reference for newer ansible behavior
Newer ansible versions don't allow with_items to reference undefined
variables so we'll provide a default.

We'll also update some conditionals to deal with naming requirements
changes on insights api endpoints
2017-04-06 10:53:18 -04:00
Michael Abashian
915eccd982 Merge pull request #5958 from mabashian/5945-required-multiple-choice
Fixed single select required survey question bug
2017-04-06 09:51:26 -04:00
Michael Abashian
7b5e70a45e Fixed bug where single select multiple choice survey questions that are required leave the form permanently disabled. 2017-04-05 12:37:07 -04:00
Shane McDonald
65dd84ed92 Merge pull request #5937 from shanemcd/spec-file-template
Render spec file through Jinja template
2017-04-03 12:12:25 -04:00
Shane McDonald
d600706150 Use jinja template for populating version and release in spec file
These macros were intended to pull the version and release from a python file if they werent passed in with --define, but /usr/bin/python is not available at this point in the build process. I'm not sure when or if this ever worked. Perhaps before we were using mock.

This approach also works for our Brew builds, as we cannot specify a macro value at build time.
2017-04-03 10:32:46 -04:00
Matthew Jones
d06bc9df7a updating versions for 3.1.3 release 2017-03-31 12:11:37 -04:00
Matthew Jones
4ff732bc5e Merge branch 'release_3.1.2' into stable
* release_3.1.2: (149 commits)
  updating changelog for 3.1.2
  Add back SRC_ONLY_PKGS
  Fix ubuntu 14 restart service list pt 2
  Make sure the insight playbook fetch doesn't quote user and pass
  Add requirements/vendor to gitignore
  Conditionally install from local python dependencies in spec file
  Remove requirements/vendor on make clean.
  Update brew-srpm target to generate local requirements files
  Get offline pip installs working
  Add clean-dist target
  Navigate back to the jobDetails state when the user clicks outside the host event modal.
  Don't use jinja quote filter on insights username or password
  fix legacy standard out
  Fixed permissions typo
  add test, restore old behavior in api test
  create _survey_element_validation and use it for updating extra_vars
  Do not set the default if the field was not passed in to kwargs_extra_vars
  Remove log aggregator port required mark.
  Modify according to review feedback.
  Host Event json should be read-only
  ...
2017-03-30 22:43:54 -04:00
Shane McDonald
f92c17617c Merge pull request #5931 from shanemcd/fix-supervisor-service-name
Fix ubuntu 14 restart service list pt 2
2017-03-30 14:10:42 -04:00
Shane McDonald
5d8e4d0419 Add back SRC_ONLY_PKGS
Ooops.
2017-03-30 13:08:48 -04:00
Matthew Jones
eeed969a56 Make sure the insight playbook fetch doesn't quote user and pass 2017-03-29 16:42:15 -04:00
Shane McDonald
8bab0a14ef Add requirements/vendor to gitignore 2017-03-29 14:30:58 -04:00
Shane McDonald
8c7947b1a8 Remove requirements/vendor on make clean. 2017-03-29 14:30:58 -04:00
Shane McDonald
d9e65823ad Update brew-srpm target to generate local requirements files
This looks pretty hairy, but essentially it's just re-invoking `pip download` with `--no-deps` so that I can record the name of the local archives that are created.
2017-03-29 14:30:58 -04:00
Shane McDonald
93dda555f1 Get offline pip installs working
I had to pull the git urls out of the main requirements files because in order to install offline (--no-index), we need pip to install from local package archives rather than cloning repo.

The weird `cat` thing going on in the Makefile is because we need to install everything as part of a single `pip install` transaction. Without this, installing only requirements_git.txt will result in dependencies getting unintentionally updated.
2017-03-29 14:30:58 -04:00
Shane McDonald
83919682ea Add clean-dist target 2017-03-29 14:30:58 -04:00
Michael Abashian
64d2d6970b Merge pull request #5921 from mabashian/5895-job-results-modal
Navigate back to the jobDetails state when the user clicks outside the host event modal.
2017-03-29 14:29:19 -04:00
Michael Abashian
bfbeef18e6 Navigate back to the jobDetails state when the user clicks outside the host event modal. 2017-03-29 12:04:48 -04:00
jlmitch5
b9531ea42a Merge pull request #5897 from jlmitch5/fixLegacyStdout
Fix legacy stdout
2017-03-28 11:17:35 -04:00
Matthew Jones
536a3b1647 Don't use jinja quote filter on insights username or password
This fixes an issue where a user was trying to use an exclamation mark
in the password. Historically we've used the quote filter but more and
more we're seeing conflicts with special characters
2017-03-27 15:40:43 -04:00
Michael Abashian
e5bd641a20 Merge pull request #5896 from mabashian/5894-workflow-permissions
Fixed workflow admin permissions bug
2017-03-27 12:55:27 -04:00
John Mitchell
d4955599ad fix legacy standard out 2017-03-27 12:06:54 -04:00
Michael Abashian
fd95c1e6e4 Fixed permissions typo 2017-03-27 11:56:08 -04:00
Wayne Witzel III
e750f1a01c Merge pull request #5892 from wwitzel3/release_3.1.2
Do not set the default if field was not passed in to kwargs_extra_vars.
2017-03-27 09:50:35 -04:00
Wayne Witzel III
45c3a389d4 add test, restore old behavior in api test 2017-03-27 09:39:21 -04:00