Commit Graph

  • 1f62042828 Add new relaunchd configuration files, but keep rc.d so both can be used Kris Moore 2016-04-12 16:55:03 -04:00
  • 81c4e91905 Content addition to connection.rst -beginning to create content for the "getting started" section in connection.rst -re-added events.rst to the index -some json syntax corrections in connection.rst Tim Moore II 2016-04-12 16:47:30 -04:00
  • 224c7c8178 Additional dispatcher work Tim Moore II 2016-04-12 13:39:34 -04:00
  • b257874672 Disable the rpc/syscache backend from the sysadm server. The new sysadm/pkg backend completely replaces it. Ken Moore 2016-04-12 07:38:52 -04:00
  • ad26f68a76 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-11 10:41:10 -04:00
  • f4c0bc632f (API CHANGE) Enhance the sysadm-pkg search functionality a bit: 1) Add a new optional argument to the pkg_search action: "search_excludes" (string or array of strings). This will exclude matches which contain a restricted string. 2) Add a new output field to the search results: "pkg_search":{"results_order":[list of origins by priority], <other results/data> } 3) Adjust how the search is performed when the search term has multiple words. First look for any result which contains all the words, then if nothing is found look for any result which contains any of the words. Ken Moore 2016-04-11 10:34:28 -04:00
  • 74d28db8fa Merge pull request #13 from Mrt134/master Dru Lavigne 2016-04-07 15:02:25 -04:00
  • e245ee9be4 Events.rst work Tim Moore II 2016-04-07 14:56:20 -04:00
  • 6cdf2c32ba Fix a bug with the new SQL database connections - the sub-queries needed the individual DB to use as well. Ken Moore 2016-04-05 14:37:03 -04:00
  • b7273f7e19 Make sure that when starting updates via sysadm - it will remove the temporary/last update log file so the next check is forced to re-run. Ken Moore 2016-04-05 10:22:37 -04:00
  • 36b30e6c9c Finish cleaning up the new "pending" state for dispatcher processes. Ken Moore 2016-04-05 10:19:05 -04:00
  • 8ad8babafa Adjust the pkg search routine to also detect exact name matches. Ken Moore 2016-04-05 09:43:17 -04:00
  • 9409ef7908 Setup the dispatcher system to have "pending" processes send out regular pings about still being pending. Ken Moore 2016-04-05 09:38:39 -04:00
  • d99e3443bd Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-05 09:10:54 -04:00
  • 72e337f10b Fix up the SQL connection queue issues. Now it works a little faster and multiple threads accessing the same database will not cause crashes. Ken Moore 2016-04-05 09:10:04 -04:00
  • f1fe85150e Merge pull request #12 from Mrt134/master Dru Lavigne 2016-04-04 14:10:21 -04:00
  • b11281e2bc -Added tm to 'SysAdm' Tim Moore II 2016-04-04 13:48:55 -04:00
  • 895821ad0e Merge pull request #11 from Mrt134/master Dru Lavigne 2016-04-04 13:40:14 -04:00
  • 185f064b34 Text addition to manage.rst Tim Moore II 2016-04-04 13:34:52 -04:00
  • 919457d54f Forgot to add the new files from the previous commit. Tim Moore II 2016-04-04 13:11:32 -04:00
  • bfb99d34ce Content addition to the SysAdm server docs -Added two new docs as chapters -Bringing readme information over to .rst for downloading and building SysAdm Tim Moore II 2016-04-04 13:06:12 -04:00
  • 89fbc1293c Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-04-01 15:06:51 -04:00
  • 221b666262 Turn off some debugging, and switch the pkg database connection system over to a clone system so one request cannot interfere with another. Ken Moore 2016-04-01 15:06:10 -04:00
  • 070fa8578c Merge pull request #10 from Mrt134/master Dru Lavigne 2016-03-31 15:14:35 -04:00
  • 6cdd3d2cbf A few error fixes - updated sysadm server documentation with correct title. - cleaned up a few json errors in dispatcher event reply messages. Tim Moore II 2016-03-31 13:54:26 -04:00
  • e5d8c33b81 Remove some comments from the pkg interface, and make sure the dispatcher sends out a full update when starting for the first time (in case the proc is a special subsystem process). Ken Moore 2016-03-31 10:09:37 -04:00
  • 341a546c4b Fix a bug in the new annotations streamline - now it gets added to the proper sub-object. Ken Moore 2016-03-31 08:19:28 -04:00
  • 23a688bd75 Also speed up the annotations pkg_info listing - now it only uses 2 queries total instead of 1+(2*<number of options>) queries. Ken Moore 2016-03-30 21:35:24 -04:00
  • 4abaac9b75 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-30 21:20:21 -04:00
  • 096fb2c5be Reduce the number of queries to get all the options for a pkg down to a single query (across a couple tables). Ken Moore 2016-03-30 21:19:36 -04:00
  • 44d1166023 Merge pull request #9 from Mrt134/master Dru Lavigne 2016-03-30 09:17:44 -04:00
  • 08af33c778 Fix up the dispatcher queueing system (for real this time). Now the processes will properly get removed when they are finished, and the next process started up. Ken Moore 2016-03-29 20:21:43 -04:00
  • b7be4faa31 Merge branch 'master' of https://github.com/pcbsd/sysadm Tim Moore II 2016-03-29 16:23:59 -04:00
  • 9a371de28d Working on section 3 of PC-BSD API 1.0 documentation. Added subsections to section 3: dispatcher, life preserver, and system state. Added examples of dispatcher messaging to parts of section 4: Classes. Added further examples of messaging to section 3 in the subsections. Tim Moore II 2016-03-29 16:17:26 -04:00
  • f66656675b Remove placeholders for now as they can be readded as calls are created. dlavigne 2016-03-29 10:21:18 -04:00
  • 6705c0b70c Remove redundancy. Events will now be described in each section, as required. dlavigne 2016-03-29 10:06:52 -04:00
  • 842a594ce3 Doc extra arguments to pkg_info. dlavigne 2016-03-28 14:08:53 -04:00
  • d68499f0e4 Doc pkg_remove action. dlavigne 2016-03-28 13:25:40 -04:00
  • 89bf8df311 Doc pkg_install action. dlavigne 2016-03-28 13:04:50 -04:00
  • f72f2db240 doc pkg_lock and pkg_unlock actions. dlavigne 2016-03-28 12:51:22 -04:00
  • 6e046d5782 Doc pkg_update action. dlavigne 2016-03-28 12:40:37 -04:00
  • 069e0467a4 Doc pkg_check_upgrade action. dlavigne 2016-03-28 12:28:31 -04:00
  • b7471bf44e Fix a threading issue in the dispatcher which was preventing queued processes from getting started. Ken Moore 2016-03-28 12:20:01 -04:00
  • 033bea2e7b Add a new API call: sysadm/pkg, "action"="pkg_remove". This will remove the given packages from the system. Required arguments: "pkg_origins" = (single origin string or array of origin strings). Optional arguments: "recursive" = "true" or "false" (default: "true"). If true, other packages which depend on this package will also be removed (no broken dependencies). NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 11:59:42 -04:00
  • 9a0ac8e403 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-28 11:53:11 -04:00
  • ab0ce827cf Add a new API call: sysadm/pkg, "action"="pkg_install". This will install the given packages on the system. Required arguments: "pkg_origins" = (single origin string or array of origin strings). Optional arguments: "repo": Name of the remote repository to use (if not supplied, pkg will automatically determine repository). NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 11:50:31 -04:00
  • dd19b3cf88 Doc pkg_upgrade action. dlavigne 2016-03-28 11:47:58 -04:00
  • 7aa65f4d22 Doc the pkg_audit action. dlavigne 2016-03-28 11:40:20 -04:00
  • 31593708bf Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-28 11:33:39 -04:00
  • d00ccb071c Add 2 new API calls: sysadm/pkg, "action"="pkg_[un]lock". This will [un]lock the given packages on the system. Required argument: "pkg_origins" = (single origin string or array of origin strings). NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 11:30:46 -04:00
  • 5d7bd03cc1 Doc list_categories and list_repos actions. dlavigne 2016-03-28 11:22:10 -04:00
  • cbd250edda Add a new API call: sysadm/pkg, "action"="pkg_update". This will have pkg update it's databases if necessary (not typically used). Optional argument: "force" = "true" or "false" (default: "false"). If true, this will force pkg to completely re-sync all databases with all known repos (may take some time). NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 11:08:44 -04:00
  • 8680d309a5 Add a new API call: sysadm/pkg, "action"="pkg_check_upgrade". This will have pkg check to see if there are any package updates available. NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 11:00:59 -04:00
  • df3196a54e Add a new API call: sysadm/pkg, "action"="pkg_upgrade". This will have pkg upgrade all currently-installed packages. NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 10:55:40 -04:00
  • 01e47a358e Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-28 10:51:25 -04:00
  • 34dcdf1aef Doc pkg_info action. dlavigne 2016-03-28 10:39:55 -04:00
  • 203c18752f Add a new API call: sysadm/pkg, "action" = "pkg_audit". This will perform an audit of all installed packages and report any vulnerable packages and which other packages these impact. NOTE: The actual information will be returned as a Dispatcher event - this API call just queues up the pkg operation (limitation of pkg - only one process call at a time) Ken Moore 2016-03-28 10:37:05 -04:00
  • 428e8d93b0 Prep for changes to pkg class. dlavigne 2016-03-28 10:23:34 -04:00
  • 8119f440a5 Doc setprop action. dlavigne 2016-03-28 10:01:41 -04:00
  • a5a34512c9 Make sure the sysadm/pkg "list_categories" API call only returns non-empty categories. Also add most of the backend systems for additional pkg-modification calls (no API for them yet - that is coming soon). Ken Moore 2016-03-28 09:54:47 -04:00
  • 85de30526f Doc getprops action. dlavigne 2016-03-28 09:50:29 -04:00
  • d268651000 Merge pull request #8 from Mrt134/master Dru Lavigne 2016-03-28 08:45:52 -04:00
  • 5e0cc42ab2 Add two more API calls for sysadm/pkg 1) "action"="list_categories" (optional argument: "repo"). This will list all the known categories within the given repository (local repository used by default if none specified). WARNING: Just because a category is listed from here does not mean there are packages existing within that category. This might be corrected later on to only return categories where packages reside. 2) "action"="list_repos" (no other arguments). This will scan the pkg repo config files and return any repos that pkg is currently aware of. NOTE: All of the repos returns by this function are valid as the optional "repo" argument for the other sysadm/pkg API calls. Ken Moore 2016-03-25 19:36:25 -04:00
  • cbeb80aee1 Add a new API call for sysadm/pkg: "action"="pkg_search" This will search with the given "search_term" (required) and return the basic info on all results found. Optional inputs: 1) "repo" - may be used to specifiy searching a particular repository (local DB if not specified). 2) "category" - may be used to restrict searches to a particular category. Ken Moore 2016-03-25 16:02:45 -04:00
  • 6df41caa9f Merge branch 'master' of https://github.com/pcbsd/sysadm Tim Moore II 2016-03-25 15:32:51 -04:00
  • 67484ee2c8 I created a new "docs" directory for the server sysadm handbook and added a basic introduction. Tim Moore II 2016-03-25 15:29:35 -04:00
  • 0d478da106 Another few modifications to the sysadm/pkg - "pkg_info" action/API. 1) Add a new optional argument: "category". This option will be used if the "pkg_origins" argument is not, and limits the results to packages within the designated category. 2) Add a new optional argument: "result". This option may be set to anything other than "full" to restrict the information output to just the basic/simple information (no sub-categories of info such as "dependencies","requires","depends","options", etc...) Ken Moore 2016-03-25 15:15:09 -04:00
  • 147f0c5338 A couple more tweaks for the new pkg_info API call: Now the "provides"/"requires" information will also be output (not too common yet), and the same function can be used for any repo file/database. Ken Moore 2016-03-25 14:38:41 -04:00
  • e18efb942d Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-25 12:07:10 -04:00
  • 0b70897ce8 Add a new API call/system: sysadm/pkg. This system reads the pkg database directly and returns any relevant information about the pkgs requested. Note: The "repo" input is optional (defaults to "local"), and the "pkg_origins" will become optional here soon as well (going to make it default to listing all pkgs if the pkg_origins variable is missing/empty). Ken Moore 2016-03-25 12:03:38 -04:00
  • 3dfe44dbb0 Add new iohyve API call to set properties Kris Moore 2016-03-25 11:24:13 -04:00
  • 87f1b49fed Add new API call to get iohyve properties for a guest Kris Moore 2016-03-25 10:40:56 -04:00
  • 4d2dc47837 For the health check - add a "priority" field within the indivual zpool object which needs attention (in addition to the overall "priority" field). This helps for parsing which individual system needs attention within the health check. Ken Moore 2016-03-24 10:18:30 -04:00
  • 7566f1396e Add a new "fast" mode to the sysadm-update check for updates (re-use previous update info), and setup the regular health check to report update information using this fast mode. Ken Moore 2016-03-24 08:58:29 -04:00
  • 0bf67bbe06 Fix the update process detection command - needs a return code of 0 to tell if there is a process running. Ken Moore 2016-03-23 14:34:21 -04:00
  • bec2898567 Ensure that events also send the message to the socket through the proper thread/order. Ken Moore 2016-03-23 14:27:42 -04:00
  • 3acadf13d0 Minor update to the .gitignore file - make sure *all* compiled (.o, moc_*) files are ignored. Ken Moore 2016-03-22 11:51:17 -04:00
  • 427eb7ec25 Turn off some minor debugging, and ensure that the system health check gets saved into temporary storage for later use as needed. Ken Moore 2016-03-22 10:21:46 -04:00
  • a64fd734c9 Merge branch 'master' of github.com:pcbsd/sysadm Ken Moore 2016-03-22 10:04:07 -04:00
  • 7edfaa2321 Oops - fix a typo in the new zfs list_pools output to preserve the "%" symbols in the outputs. That symbol only needs to get trimmed out during the system health checks - not globally. Ken Moore 2016-03-22 10:02:35 -04:00
  • 9934a17450 Update zfs.rst Ken Moore 2016-03-22 09:47:28 -04:00
  • b074a611ee Move the "zpool list" parsing function over to a new library class (sysadm::ZFS). This adjusts the sysadm/zfs "list_pools" action return message a bit - it just moves the list of pools one level down - within a "list_pools" object. Ken Moore 2016-03-22 09:39:39 -04:00
  • 055f6e3be8 Fix another bug in the system health checker - ensure that multiple pools are all listed and not overwriting one another. Ken Moore 2016-03-21 15:47:51 -04:00
  • 992bdd1f2e Fix the parsing of zpool list used for the health check. Ken Moore 2016-03-21 15:36:39 -04:00
  • 3060c9906d Finish fixing up the sysadm/update server backend. Now updates can properly be started and the other update flags are detected/used as needed. Ken Moore 2016-03-21 14:14:51 -04:00
  • cf8cf0d429 Add a "updaterunning" status to the sysadm/update check for updates, and also setup sysadm/update to emit dispatcher events about the update process. Ken Moore 2016-03-21 13:08:13 -04:00
  • 638f0eb390 Fix a couple bugs in the sysadm/update check routine. Now it will report "rebootneeded" when the system is waiting to reboot to apply updates, and it allows for multiple "patch" entries now. Ken Moore 2016-03-18 15:16:02 -04:00
  • 4b160e2982 Cleanup pid files Kris Moore 2016-03-18 09:39:59 -04:00
  • 7fe1412b4e Use -f to remove iohyve disks / vms Kris Moore 2016-03-16 19:17:11 -04:00
  • 64366f535c Cleanup usage of RunCommand for iohyve API class Kris Moore 2016-03-12 06:06:21 -05:00
  • 7ca64172ab Add link to Qt doc Kris Moore 2016-03-12 05:27:55 -05:00
  • 29a51bf61e Switch the WebSocket message send mechanism over to a signal/slot combination so that we don't get threads trampling each other on high-latency connections. Ken Moore 2016-03-11 18:55:27 -05:00
  • 1878d25d46 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-03-11 08:10:07 -05:00
  • cb4c4eb544 Change how we parse incoming WebSocket TCP/SSL data. Its possible that data coming in will be mixed with several messages at once, lets parse those properly, and also implement some sanity checking to make sure we aren't being flooded with a potential buffer overflow Kris Moore 2016-03-11 08:08:51 -05:00
  • 9a8d509798 Fix seg fault getting ipv6 addr Kris Moore 2016-03-10 23:44:44 -05:00
  • 9f99d4c5a7 Clean up the iohyve fetch parsing a bit more, and turn off some of the debugging (leave the iohyve fetch-specific debugs on though). Ken Moore 2016-03-04 13:16:12 -05:00
  • 4ba9edabbe Oops - forgot to include this last change to the parsing routine to the iohyve fetch parsing. Ken Moore 2016-03-04 11:11:28 -05:00
  • 857919958a Update the iohyve fetch event structure, and make the whole process log structure available under the "process_details" variable in the event. Ken Moore 2016-03-04 11:05:39 -05:00
  • b761863341 Merge branch 'master' of https://github.com/pcbsd/sysadm Kris Moore 2016-03-03 16:05:52 -05:00
  • 87e40a8467 Rename DispatcherParsing.h -> DispatcherParsing.cpp Kris Moore 2016-03-03 16:05:18 -05:00