summaryrefslogtreecommitdiffstats
path: root/node-admin
Commit message (Collapse)AuthorAgeFilesLines
* Use DockerAdminComponentHåkon Hallingstad2018-02-1219-88/+141
|
* Merge pull request #5004 from ↵Håkon Hallingstad2018-02-124-18/+7
|\ | | | | | | | | vespa-engine/hakonhall/support-proprietary-contexts Support proprietary contexts
| * Revert "Support node-admin.sh restart"Håkon Hallingstad2018-02-111-13/+5
| | | | | | | | This reverts commit 99cd46eb72d4c7758e8c56420b14c092f8724017.
| * Support node-admin.sh restartHåkon Hallingstad2018-02-111-5/+13
| |
| * Support proprietary contextsHåkon Hallingstad2018-02-114-18/+7
| |
* | Merge pull request #5005 from ↵Håkon Hallingstad2018-02-121-5/+13
|\ \ | | | | | | | | | | | | vespa-engine/hakonhall/support-node-adminsh-restart Support node-admin.sh restart
| * | Support node-admin.sh restartHåkon Hallingstad2018-02-111-5/+13
| |/
* / Add bouncycastle to vespa-node-admin RPMHåkon Hallingstad2018-02-112-0/+18
|/
* Merge pull request #4988 from ↵Håkon Hallingstad2018-02-094-144/+110
|\ | | | | | | | | vespa-engine/hakonhall/use-terminal-for-yum-and-systemctl Use Terminal for Yum and SystemCtl
| * Use Terminal for Yum and SystemCtlHåkon Hallingstad2018-02-094-144/+110
| |
* | Bouncycastle must be loaded as separate bundlesBjørn Christian Seime2018-02-081-0/+10
| |
* | Use BouncyCastle providerValerij Fredriksen2018-02-081-2/+25
|/
* Merge pull request #4964 from vespa-engine/hakonhall/add-file-editorValerij Fredriksen2018-02-085-0/+239
|\ | | | | Add file editor
| * Add file editorHåkon Hallingstad2018-02-085-0/+239
| |
* | Merge pull request #4956 from vespa-engine/freva/stabilize-node-admin-testValerij Fredriksen2018-02-081-4/+16
|\ \ | |/ |/| Stabilize node-admin test
| * Stabilize node-admin testValerij Fredriksen2018-02-071-4/+16
| |
* | Provide default for logOnFailureHåkon Hallingstad2018-02-071-1/+1
| |
* | Revert "Revert "Add task scoped log and logOnFailure""Håkon Hallingstad2018-02-072-7/+44
| |
* | Revert "Add task scoped log and logOnFailure"Harald Musum2018-02-072-44/+7
| |
* | Improve documentationHåkon Hallingstad2018-02-071-0/+3
| |
* | Avoid breaking interfaceHåkon Hallingstad2018-02-071-1/+1
| |
* | Add task scoped log and logOnFailureHåkon Hallingstad2018-02-072-7/+41
|/
* Add debug of all spawned processesHåkon Hallingstad2018-02-061-0/+10
|
* Remove unnecessary recursive guardHåkon Hallingstad2018-02-061-9/+0
|
* Amend program output parse exceptions with command and output snippetHåkon Hallingstad2018-02-066-3/+106
| | | | | | | | | | | By using the CommandResult::map method, any exception thrown while parsing the output will automatically be wrapped in an exception that also dumps the command and (snippet of) the full output. It also facilitates simpler code, e.g.: List<String> volumeGroups = terminal.newCommandLine(context) .addTokens("vgs --noheadings --options vg_name") .executeSilently() .mapEachLine(String::trim);
* Simplify try-finallyHåkon Hallingstad2018-02-061-12/+8
|
* Make TerminalImpl implement Terminal and remove outcommented codeHåkon Hallingstad2018-02-062-16/+7
|
* Simplify program execution and unit testing with Terminal and CommandLineHåkon Hallingstad2018-02-0532-5/+1457
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define new API for executing programs, the most significant being: - Terminal: Used to create new CommandLine for each command. A TestTerminal can be injected for unit testing that makes it easy to set up expectancy on commands, and specify the exit code/output. - CommandLine: Add arguments, execute, and retrieve output in various forms, and much more. The idea is to remove Command and friends after this is stable. It's not done in the same PR as multiple repos depends on it. Having being notified of commons-exec, this is quite similar on the surface. A few differences: - The Terminal-suite makes it much easier to get command logging correct with its execute() (=> logging) or executeSilently() (with recordSilentExecutionAsSystemModification if it turns out you need to log anyway, which is needed for e.g. YUM commands). - commons-exec doesn't seem to produce nice error message like I made some effort to do correctly: E.g. making a snippet of the output in case an exception is thrown. This can be vital to understanding an error. - commons-exec requires some discipline on behalf of the developer to get unit testable code. He Terminal and CommandLine classes could wrap and hide much of commons-exec to make this easier. - commons-exec is thread-heavy: using multiple threads for e.g. observing timeouts, for shuffling around the stdout, stderr, and stdin data, etc. - commons-exec doesn't seem to use SIGKILL in case SIGTERM doesn't stop the process. On the other hand, commons-exec supports some additional features like setting working directory or environment variables. This will have to be added to Terminal/CommandLine later.
* Revert "Create /etc/vespa"Henning Baldersheim2018-02-021-3/+0
|
* Create /etc/vespaHåkon Hallingstad2018-02-021-0/+3
|
* Cleanup TaskContextHåkon Hallingstad2018-02-0216-93/+63
| | | | | | | | | - Removes unnecessary isRunningLocally setting - Reduce TaskContext to (basically) recordSystemModification, e.g. removing FileSystem as that can be accessed through other means. - Remove DockerAdminConfig as it's still unused. - Remove unnecessary fields in NodeAdminConfig. - Move json configs to /etc/vespa.
* Add more info when principal lookup failsHåkon Hallingstad2018-02-012-2/+21
|
* Correctly assign stderr to stdoutHåkon Hallingstad2018-01-311-1/+1
|
* Merge pull request #4825 from vespa-engine/hakonhall/add-systemctl-supportHåkon Hallingstad2018-01-3112-67/+567
|\ | | | | Add systemctl support
| * Extract util for formatting exception messageHåkon Hallingstad2018-01-316-47/+125
| |
| * Export systemd packageHåkon Hallingstad2018-01-311-0/+5
| |
| * Add systemctl supportHåkon Hallingstad2018-01-3010-62/+479
| |
* | Fix regex for no-op yum commandsHåkon Hallingstad2018-01-312-11/+9
|/
* Use AthenzSslContextBuilder in node-adminValerij Fredriksen2018-01-302-37/+7
|
* Implement directory resourceHåkon Hallingstad2018-01-307-57/+330
|
* Merge pull request #4799 from ↵Håkon Hallingstad2018-01-296-52/+167
|\ | | | | | | | | vespa-engine/hakonhall/support-yum-upgrade-and-remove Support yum upgrade and remove
| * Support yum upgrade and removeHåkon Hallingstad2018-01-296-52/+167
| |
* | Merge pull request #4744 from ↵Valerij Fredriksen2018-01-295-11/+57
|\ \ | |/ |/| | | | | vespa-engine/freva/add-node-admin-hostname-verifier Add node-admin hostname verifier
| * Add node-admin hostname verifierValerij Fredriksen2018-01-235-11/+57
| |
* | Merge pull request #4775 from vespa-engine/freva/set-converge-time-at-the-endHåkon Hallingstad2018-01-291-5/+15
|\ \ | | | | | | Assume NodeAgent fails to retrieve node from node-repo after dirty
| * | Expect node not in node-repo after dirtyValerij Fredriksen2018-01-251-5/+15
| | |
* | | Merge pull request #4795 from vespa-engine/hakonhall/implement-debug-handlerHåkon Hallingstad2018-01-2921-11/+173
|\ \ \ | | | | | | | | Implement debug handler
| * | | Add author to other files I have added latelyHåkon Hallingstad2018-01-2914-0/+48
| | | |
| * | | Fix usernameHåkon Hallingstad2018-01-292-2/+2
| | | |
| * | | Add class documentationHåkon Hallingstad2018-01-292-0/+13
| | | |