aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo
Commit message (Collapse)AuthorAgeFilesLines
* Document IdempotentTask::nameHåkon Hallingstad2018-02-141-5/+21
|
* Migrate to open-source zpuBjørn Christian Seime2018-02-131-1/+2
|
* Use DockerAdminComponentHåkon Hallingstad2018-02-129-73/+116
|
* Support proprietary contextsHåkon Hallingstad2018-02-114-18/+7
|
* Merge pull request #4988 from ↵Håkon Hallingstad2018-02-092-76/+52
|\ | | | | | | | | vespa-engine/hakonhall/use-terminal-for-yum-and-systemctl Use Terminal for Yum and SystemCtl
| * Use Terminal for Yum and SystemCtlHåkon Hallingstad2018-02-092-76/+52
| |
* | Use BouncyCastle providerValerij Fredriksen2018-02-081-2/+25
|/
* Add file editorHåkon Hallingstad2018-02-084-0/+163
|
* 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-065-3/+74
| | | | | | | | | | | 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-0527-1/+1173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Cleanup TaskContextHåkon Hallingstad2018-02-0211-62/+55
| | | | | | | | | - 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-317-39/+346
|\ | | | | Add systemctl support
| * Extract util for formatting exception messageHåkon Hallingstad2018-01-315-47/+66
| |
| * Export systemd packageHåkon Hallingstad2018-01-311-0/+5
| |
| * Add systemctl supportHåkon Hallingstad2018-01-306-34/+317
| |
* | Fix regex for no-op yum commandsHåkon Hallingstad2018-01-311-8/+6
|/
* Use AthenzSslContextBuilder in node-adminValerij Fredriksen2018-01-302-37/+7
|
* Implement directory resourceHåkon Hallingstad2018-01-305-57/+225
|
* Merge pull request #4799 from ↵Håkon Hallingstad2018-01-294-30/+102
|\ | | | | | | | | vespa-engine/hakonhall/support-yum-upgrade-and-remove Support yum upgrade and remove
| * Support yum upgrade and removeHåkon Hallingstad2018-01-294-30/+102
| |
* | Merge pull request #4744 from ↵Valerij Fredriksen2018-01-293-10/+50
|\ \ | |/ |/| | | | | vespa-engine/freva/add-node-admin-hostname-verifier Add node-admin hostname verifier
| * Add node-admin hostname verifierValerij Fredriksen2018-01-233-10/+50
| |
* | 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-2918-4/+126
|\ \ \ | | | | | | | | 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
| | | |
| * | | Implement debug handlerHåkon Hallingstad2018-01-284-4/+65
| | | |
* | | | Allow digits in yum repo idHåkon Hallingstad2018-01-291-1/+1
| | | |
* | | | Revert "ZPE policy updater is replaced by zpu"Bjørn Christian Seime2018-01-281-1/+1
|/ / /
* | | Merge pull request #4792 from vespa-engine/hakonhall/support-file-templatesHåkon Hallingstad2018-01-2710-57/+379
|\ \ \ | | | | | | | | Support file templates
| * | | Use ifExists utilHåkon Hallingstad2018-01-272-14/+4
| | | |
| * | | Support file templatesHåkon Hallingstad2018-01-2710-54/+386
| | | |
* | | | ZPE policy updater is replaced by zpuBjørn Christian Seime2018-01-271-1/+1
|/ / /
* | | Add copyright headersJon Bratseth2018-01-252-0/+2
| | |
* | | Merge pull request #4772 from vespa-engine/hakonhall/yum-installHåkon Hallingstad2018-01-246-0/+282
|\ \ \ | |/ / |/| | YUM install
| * | Remove ProcessApiHåkon Hallingstad2018-01-243-66/+0
| | |