Hello Prateek,
Here is a simple way to test boot time with docker.
$ date +%s.%N ; docker run -it ubuntu date +%s.%N; date +%s.%N
1463417941.102041652
[241588.036012] systemd[1]: Failed to initialise default hostname
1463417942.116388987 (boottime)
1463417942.415059291 (shutdown time)
Regards
-
Geronimo Orozco
On 5/14/16, 4:45 PM, "Dev on behalf of Prateek Sharma"
<dev-bounces(a)lists.clearlinux.org on behalf of prateek3.14(a)gmail.com>
wrote:
>Hello everyone,
> What would be a good, reliable way to measure the boot-time of
>Clear-containers? Since it boots up so fast, would NTP suffice? Or is
>there a way to get the TSC values from inside the VM/container?
>
>I know this is a bit general, but I am eager to measure the actual
>clear-containers start times.
>
>Thanks!
>--Prateek
>_______________________________________________
>Dev mailing list
>Dev(a)lists.clearlinux.org
>https://lists.clearlinux.org/mailman/listinfo/dev
Arjan, Victor,
Thanks for your quick response and comments...
First, the reason for my request is we are going to use Clear Linux as a
Learning Platform for Cloud as part of "The IoT Learning Initiative"
https://theiotlearninginitiative.gitbooks.io/master/content/https://twitter.com/IoTLearningInit
Second, by looking at the List of Bundles
<https://clearlinux.org/documentation/bundles_in_clr.html> we have a couple
which looks related:
*Bundle message-broker-rabbitmq
<https://github.com/clearlinux/clr-bundles/tree/master/bundles/message-broke…>*
https://github.com/clearlinux/clr-bundles/blob/master/bundles/message-broke…
*Bundle iot
<https://github.com/clearlinux/clr-bundles/blob/master/bundles/iot>*
https://github.com/clearlinux/clr-bundles/blob/master/bundles/iot
I don't think neither *iot* bundle nor *lamp-basic* are the right place to
include Mosquitto Mqtt Broker, I might want only to have Clear Linux server
work as a messaging broker alone. If we want to follow a convention to what
Victor Morales maintains with rabbitmq, then we could probably call it
"message-broker-mosquitto"
They are part of "Messaging Protocols" / "Message Brokers" / "Connectivity
Protocol" and since IoT is having a big impact on them, some people called
them "IoT Protocols".
Should we start creating a bundle with some of the previous names to group
them? how about "message-brokers" since we are dealing with specific
application and not the protocol and once we have this new bundle we can
make iot to "include(message-brokers)" bundle?
We can start with Mosquitto for now and add other protocols as required in
future, in summary the proposal is:
message-broker-mosquitto
*New Bundle*
+ mosquitto
message-brokers *New Bundle*
+ include(message-broker-mosquitto)
+ include(message-broker-rabbitmq)
iot
* Modified Bundle...*+ include(message-brokers)
Please let me know your comments...
Best Regards
Abraham
On Mon, May 16, 2016 at 8:27 AM, Victor Rodriguez <vm.rod25(a)gmail.com>
wrote:
> Hi
>
> As far as I can see mosquito provides a lightweight method of
> carrying out messaging using a publish/subscribe model for the IoT
> devices.
>
> So Clear Linux might have an IoT bundle; however, in my opinion, it
> might not be the best place for it. We might need to put this in a
> server bundle , like LAMP ( just saying one ) . But sure a bundle
> from the server point of view with more protocols that the industry
> uses to communicate IoT devices.
>
> Abraham , do you know if there is more of these protocols that might
> be worth to include . Would be nice to have a bundle that supports the
> most used IoT communication protocols.
>
> Best regards
>
> Victor Rodriguez
>
>
>
> On Mon, May 16, 2016 at 8:00 AM, Arjan van de Ven <arjan(a)linux.intel.com>
> wrote:
> > On 5/15/2016 10:37 PM, Abraham Arce wrote:
> >>
> >> Hi Clear Linux Team,
> >>
> >> How possible is it you can integrate Mosquitto Mqtt Broker as part of a
> >> bundle?
> >> Thanks!
> >>
> >> http://mosquitto.org/download/
> >>
> >
> > since bundles are use/functionality based.... for us to know where to put
> > it....
> >
> > How would you use this component ?
> > _______________________________________________
> > Dev mailing list
> > Dev(a)lists.clearlinux.org
> > https://lists.clearlinux.org/mailman/listinfo/dev
>
On 5/15/2016 10:37 PM, Abraham Arce wrote:
> Hi Clear Linux Team,
>
> How possible is it you can integrate Mosquitto Mqtt Broker as part of a bundle?
> Thanks!
>
> http://mosquitto.org/download/
>
since bundles are use/functionality based.... for us to know where to put it....
How would you use this component ?
Hi Clear Linux Team,
How possible is it you can integrate Mosquitto Mqtt Broker as part of a
bundle?
Thanks!
http://mosquitto.org/download/
Best Regards
Abraham
Hello everyone,
What would be a good, reliable way to measure the boot-time of
Clear-containers? Since it boots up so fast, would NTP suffice? Or is
there a way to get the TSC values from inside the VM/container?
I know this is a bit general, but I am eager to measure the actual
clear-containers start times.
Thanks!
--Prateek
Hello Good Folks,
I have been trying to install ClearLinux (build v7280) and it has been
failing. It proceeds till the automatic partition screen, starts the
install but fails. This is true even from manual install.
Issue 1:
------------
I have been trying to install ClearLinux on a machine which was earlier
used as a ESXi host. And I believe I was using a single concatenated
datastore volume (sda+sdb).
When I saw the debug log it stated that failed to mount the
VMFS_volume_member. This is inspite of the fact that I don't have any
partitions on the two disks (sda & sdb).
After the failed installation, the installer brings me to a window where I
can '< View log >', '< Shell >', '< Reboot >' or '< Shutdown >'
Actual error from the debug mentioned below:
>>>>
425-Debug: Error mount: unknown filesystem type 'VMFS_volume_member'
425-Error: Couldn't install ClearLinux
425-Info: Cleaning up
425-Debug: Failed: Exception(' mount /dev/sda1
/tmp/ister-7230-yonmwyhf/boot failed',)
<<<<
Issue 2:
------------
Now if I enter the shell, and enter an command 'ip' without any parameters
or arguments, the installer crashes and throws an python assert. At this
point soft reboot does not work and I have to hard reset.
My assumption is that on the shell if a user keys in a command which has
populated the STDERR handle, then the shell within the installer throws an
assert and crashes.
Thanks.
Regards Phukat
Hi all,
swupd seems to remove `kernel-kvm` which was previously automagically
installed as a dependency of the `kvm-host` bundle:
```
$ sudo swupd bundle-remove kernel-kvm
swupd-client bundle remover 3.5.3
Copyright (C) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 5
Untracking bundle from system...
Success: Bundle removed
```
and so `kernel-kvm` is not present anymore in the list of installed
bundles:
```
$ ls -1 /usr/share/clear/bundles/kernel-kvm
ls: cannot access '/usr/share/clear/bundles/kernel-kvm': No such file
or directory
```
But, as `kernel-kvm` was installed as a dependency of `kvm-host`, it
would be better if it could not be uninstalled while `kvm-host` is
still present on the system.
Fortunately, `swupd verify --fix` corrects the situation and reinstalls
the dependency, so `kernel-kvm` is back again on the system:
```
$ sudo swupd verify --fix
[...]
$ ls -1 /usr/share/clear/bundles/kernel-kvm
/usr/share/clear/bundles/kernel-kvm
```
Regards,
-- FB
Hi all,
While removing `kvm-host` and `kernel-kvm` bundles on a bare metal
Clear Linux rev. 7160 install upgraded to rev. 7770, I was stuck as a
standard user without any option since removing `kvm-host` put me out
of the sudoers file. Here are the steps done:
At first,
```
$ sudo swupd bundle-remove kvm-host kernel-kvm
swupd-client bundle
remover 3.5.2
Copyright (c) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 230
Untracking bundle from system...
Success: Bundle removed
```
Then,
```
sudo swupd verify --fix
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of the others.
#2) Think before you type
#3) With great power comes great responsibility.
Password:
clruser is not in the sudoers file. This incident will be reported.
```
After a reboot (log out and then log in again was not sufficient), the
system was able to read correctly `/etc/sudoers.d/clruser` in order to
behave again as if the standard user originally created at install time
was in the sudoers file.
This bug is reproducible.
--------------------
NOTE: on Sat, 02 Apr 2016, I wrote to the list as swupd verify wanted
to delete sudoers.d after adding kvm-host bundle on a new bare metal
install (rev. 7160). Maybe there is a relation?
--------------------
-- FB
Hi all,
swupd bundle-remover seems to only manage one bundle at a time but one
can pass several bundles to be removed without any warning:
```
# swupd bundle-remove kvm-host kernel-kvm
swupd-client bundle remover
3.5.3
Copyright (C) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 230
Untracking bundle from system...
Success: Bundle removed
```
`kvm-host` bundle was removed, but `kernel-kvm` is still present in the
list of installed bundles:
```
$ ls -1 /usr/share/clear/bundles/kernel-kvm
/usr/share/clear/bundles/ker
nel-kvm
```
Regards,
-- FB