Proposal for the development of Cockpit support for systemd timers.
by Harish Anand
Hello,
I am interested in the development of Cockpit support for systemd timers as
part of GSoC 2016. I am an undergraduate student pursuing Computer Science
and Engineering in India. I would like propose an idea on modifying the
timer support to Cockpit services.
I want to create a D-BUS service with functions that provide crontab's
different functionality. Would it be possible to call this D-BUS service
functions from within cockpit like a client ?
Also I'm open to new (or other possible) ideas on how to implement it.
I have intermediate level familiarity with D-BUS and jQuery. I have
developed an application where I had to create both the D-BUS service and
the client using it.
Here is the code to my hobby project.
https://github.com/harishanand95/Bear .
Regards,
Harish Anand
8 years, 1 month
Use Cockpit-bridge alone
by adriano@noverit.com
Hello team,
is there any chance use the cockpit-bridge alone, without cockpit-ws? We are interested in integration of cockpit-bridge in our custom ws for a management platform project. The idea is to use cockpit-bridge to interact with configuration services: systemd, storaged, realmd, etc..
What about license?
Thanks and regards,
Adriano
8 years, 1 month
Cockpit with Kubernetes container?
by Josh Berkus
Folks,
Is there a version of the Cockpit container which has the beta
kubernetes support available? I'm headed to Kubecon and would love to
show it off.
--
--
Josh Berkus
Project Atomic
Red Hat OSAS
8 years, 1 month
Re: error cockpit on centos7 - openvz
by Stef Walter
I hope it's okay if I post my response to the cockpit mailing list.
On 06.03.2016 11:01, Jean-Paul Geerets wrote:
> recently i fount the application "cockpit".
> it looks great and i wanna give it a try on my vps.
> it is a openvz with centos7 on it.
>
> install was very easy, not a problem.
>
> after login to the website, it kicks me out in a few seconds.
>
> when searching, i found these errors:
> ---
> cockpit-protocol-Message: grep: couldn't run grep: Failed to change to
> directory '/sys/devices/virtual/dmi/id' (No such file or directory)
> cockpit-bridge-Message: Reauthorizing unix-user:<username>
> cockpit-polkit: user <username>was reauthorized
> cockpit-bridge-Message: cockpit-polkit helper exited with status: 0
> cockpit-protocol-Message: grep: couldn't run grep: Failed to change to
> directory '/sys/devices/virtual/dmi/id' (No such file or directory)
> cockpit-bridge-Message: error loading contents /proc/vmstat: Failed to
> open file '/proc/diskstats': No such file or directory
> cockpit-bridge-Message: error loading contents /proc/vmstat: Failed to
> open file '/proc/diskstats': No such file or directory
> cockpit-bridge-Message: error loading contents /proc/diskstats: Failed
> to open file '/proc/diskstats': No such file or directory
> exec gdb failed: No such file or directory
> Error: signal Segmentation fault:
> cockpit-bridge(+0x35269)[0x7fd7df09c269]
> /lib64/libc.so.6(+0x35670)[0x7fd7dd74e670]
> /lib64/libglib-2.0.so.0(g_slice_alloc+0xa7)[0x7fd7de5ab4d7]
> /lib64/libglib-2.0.so.0(g_slice_alloc0+0xe)[0x7fd7de5ab9ae]
> /lib64/libjson-glib-1.0.so.0(+0x1a17e)[0x7fd7de33b17e]
> /lib64/libjson-glib-1.0.so.0(json_node_set_int+0x7d)[0x7fd7de3319fd]
> /lib64/libjson-glib-1.0.so.0(json_node_init_int+0x26)[0x7fd7de331a46]
> /lib64/libjson-glib-1.0.so.0(json_object_set_int_member+0x2b)[0x7fd7de33217b]
> cockpit-bridge(+0x19066)[0x7fd7df080066]
> ---
>
> version of cockpit-ws:
> ---
> Version: 0.93
> Protocol: 1
> Authorization: crypt1
> ---
>
> i hope you can give me some advice on what to do to get this running.
This bug is in the error handling of the code that fails to read
diskstats. The bug was fixed recently in version 0.96:
https://github.com/cockpit-project/cockpit/issues/3812
Hope that helps.
Cheers,
Stef
8 years, 1 month
Fwd: Ideas for GSOC 2016
by Abhishek Gupta
Hi mentors
Hope you are doing good. As you know Fedora has been selected as a
GSOC 2016 mentoring organization (
https://summerofcode.withgoogle.com/organizations/?sp-search=fedora )
and the community bonding period has been started.
I am already looking for the small patches in the cockpit repo since a
few days(Thanks
to the mentors, 2 PRs have been successfully merged into the
tree). It took me some time to get started in the beginning, switching
from Ubuntu to Fedora, building cockpit, some git issues, academic
examinations e.t.c but gradually it all became comfortable working
with. Hopefully before the student applications deadline I'll be able
to contribute more( aiming 5-10 patches as suggested by stefw).
Meanwhile I wanted to discuss can we do something for a GSOC project ?
Any project ideas from the mentors ?What is the work which is needed
to be done in
cockpit ? Any other suggestions from you regarding this ?
stefw have suggested to work on some docker related work or perhaps
https://trello.com/c/1B2lZViZ/74-timers-and-cron.
Is there any mentor(s) who will be interested in a GSOC project ?
Thanks
Abhishek
8 years, 1 month
Cockpit 0.96
by Stef Walter
This is a summary of the Cockpit weekly release ... yup we missed a
couple weeks. This week it was 0.96
Cockpit now limits authentication requests
------------------------------------------
Cockpit now keeps itself from spawning too many processes to handle
authentication requests. The cockpit-ws process has a MaxStartups option
similar to sshd. It lets you set the maximum number of authentications
that can be in progress, as well as a drop rate for times when that
limit is exceeded.
The default has been set to 10 simultaneous authentication requests.
Doc: http://cockpit-project.org/guide/latest/cockpit.conf.5.html
Change: https://github.com/cockpit-project/cockpit/pull/3830
Compatible with docker 1.0
--------------------------
Docker 1.10 has or will change its APIs in several ways, mostly getting
stricter on validating its input and deprecating old stuff. This version
of Cockpit has several updates to make things continue to work.
Change: https://github.com/cockpit-project/cockpit/pull/3823
Showing disk names and icons
----------------------------
Andreas has been working on getting the storage display to look and
react better. And mulkieran has been doing lots of testing in this area
so more to come.
Change: https://github.com/cockpit-project/cockpit/pull/3792
Change: https://github.com/cockpit-project/cockpit/pull/3714
Change: https://github.com/cockpit-project/cockpit/pull/3738
Fixed several memory leaks
--------------------------
Although we run the unit tests with valgrind, the valgrind process was
being killed when the javascript based tests were done. So we missed
fixing a few memory leaks, mostly to do with DBus messages. These are
fixed now.
Change: https://github.com/cockpit-project/cockpit/pull/3845
Better Vagrant support
----------------------
Lars made the Vagrantfile better by adding support for logging into
Cockpit with the 'vagrant' user, and removing the TLS requirement when
you're developing via Vagrant.
So just do this to start hacking on Cockpit:
$ git clone http://github.com/cockpit-project/cockpit
$ cd cockpit
$ sudo vagrant up
$ firefox http://localhost:9090
See HACKING.md for more info:
https://github.com/cockpit-project/cockpit/blob/master/HACKING.md
Integration tests can be run against an already running machine
---------------------------------------------------------------
Besides finding bugs in Cockpit, the Cockpit integration tests have been
finding all sorts of bugs in other software that Cockpit drives. So it's
cool to see others starting to try to run these same tests as part of
their testing process.
One thing that makes it easier is that you can pass a --machine argument
to many of the 'verify' tests and instead of trying to spawn a new
machine, it'll run the test against an already running machine that you
may have set up.
Something like this:
$ cd test
$ ./verify/check-system-info --machine=10.1.1.2
Get it
------
You can get Cockpit 0.96 in Fedora 23 or Fedora Rawhide:
https://bodhi.fedoraproject.org/updates/cockpit-0.96-1.fc23
Or via COPR for CentOS, RHEL, and earlier versions of Fedora:
https://copr.fedoraproject.org/coprs/g/cockpit/cockpit-preview/
Or download the tarball here:
https://github.com/cockpit-project/cockpit/releases/tag/0.96
Take care,
Stef
8 years, 1 month
cockpit customization: UI, modules, etc
by Stefano Zamboni
Hi all
first of all thank you for this really impressive piece of code.
Premise:
I'm a contributor of Koozali SME server linux distribution
(http://www.koozali.org); ATM our distro is C6 based, but we (finally)
starting moving to C7
we need to rethink/redo our server manager (from here S-M) web gui and
cockpit come to our attention.
the idea is to use cockpit as a base for our S-M, but we need to know if
it supports some kind of customization.. we don't want to create "our"
cockpit, just enhance it via plugin, trying to stay adherent to the
upstream version
I have some question:
1) I know that branding is possible/quite easy, but, for example, I
didn't find any way to change the background color of the main bar, on
top of the page.. I see that all the style is inline.. is it a choiche?
is editing that code the only way to change colors/fonts and so on?
2) is there any way to "override" some features? for example, I'd like
to replace users' logic creation with mine; is it feasible? moreover, is
possible to disable/hide some elements (buttons or a single menu item in
the left bar)?
3) OTOH, is there an easy way to enhance an available panel with some
custom buttons/elements?
IIUC, supposing that only root will have access to cockpit, I can
override an existing module just creating a new one in
////root///.local/share/cockpit/ /dir.. am I right?
thank you in advance for your patience and attention.
Ciao
S.
8 years, 1 month
Cockpit server cannot connect to host
by Fuji San
Hello,
I'm trying to add a client to the dashboard of my cockpit server but it
always says "Cockpit could not contact the given host."
and in the logs of my server, it says: "myserver cockpit-ws: myclient:
couldn't connect: Socket error: Connection reset by peer".
I have many clients listed in the dashboard but 2 desktops are having
trouble connecting.
How can I add them?
The version of cockpit installed on both the server and the client is 0.95.
Regards,
Fuji
8 years, 1 month