OSDN Git Service
niwa-hideyuki [Wed, 21 May 2014 06:40:14 +0000 (15:40 +0900)]
Deletion of skipjob command
niwa-hideyuki [Wed, 21 May 2014 00:47:01 +0000 (09:47 +0900)]
The source directory for REST API is made.
niwa-hideyuki [Mon, 19 May 2014 01:55:05 +0000 (10:55 +0900)]
The mistake of the operation of the character buffer that lxcf-sched uses is corrected.
Hdeyuki Niwa [Sun, 18 May 2014 12:32:26 +0000 (21:32 +0900)]
The bug from which the error message comes out by sysgen and clone
is corrected.
Hdeyuki Niwa [Sat, 17 May 2014 10:15:38 +0000 (19:15 +0900)]
q command is added as an alias of queue.
Hdeyuki Niwa [Sat, 17 May 2014 10:13:55 +0000 (19:13 +0900)]
UUID of queue is passed to the container generated with clone.
When two or more containers are generated, UUID is passed to
the first container.
clone-n is off the subject.
Hdeyuki Niwa [Sat, 17 May 2014 00:38:27 +0000 (09:38 +0900)]
UUID of queue is passed to the container generated with sysgen.
When two or more containers are generated, UUID is passed to
the first container.
Sysgen-n is off the subject.
TAMUKI Shoichi [Thu, 15 May 2014 21:04:18 +0000 (06:04 +0900)]
Improve lxcf.spec
Thanks to many suggestive comments by Fedora package reviewers, the
lxcf spec file has been brushed up to be simpler and arch-independent.
To proceed a step further, the lxcf package can now build into proper
rpms and work on architectures other than x86_64.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Thu, 15 May 2014 08:25:16 +0000 (17:25 +0900)]
The comment on functions are added.
niwa-hideyuki [Thu, 15 May 2014 07:52:45 +0000 (16:52 +0900)]
Limitation of number of jobs on queue
niwa-hideyuki [Wed, 14 May 2014 08:17:03 +0000 (17:17 +0900)]
Improvement of salvage procedure of lxcf-sched
niwa-hideyuki [Wed, 14 May 2014 07:10:57 +0000 (16:10 +0900)]
Improvement of change processing of multiplicity of lxcf-sched
niwa-hideyuki [Wed, 14 May 2014 03:08:28 +0000 (12:08 +0900)]
The multiplicity of job was made changeable.
The multiplicity of job is dynamically changeable in "queue multi".
usage : lxcf queue multi NUMBER
niwa-hideyuki [Tue, 13 May 2014 08:00:18 +0000 (17:00 +0900)]
Multiplexing the job execution is enabled.
niwa-hideyuki [Tue, 13 May 2014 01:07:14 +0000 (10:07 +0900)]
Command queue log that displays the log is added.
lxcf queue log [-f]
The log is displayed with less.
The log is in real time displayed if there is optional -f.
TAMUKI Shoichi [Mon, 12 May 2014 20:53:56 +0000 (05:53 +0900)]
Fix the command path for systemctl
Fix the command path to /usr/bin for systemctl. Also, remove trailing
whitespace.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Mon, 12 May 2014 04:58:37 +0000 (13:58 +0900)]
Correction of example
The method of starting the container was corrected in ops-script.
niwa-hideyuki [Mon, 12 May 2014 01:03:43 +0000 (10:03 +0900)]
Restart of unnecessary libvirtd.service when the package is
installed is deleted.
TAMUKI Shoichi [Sat, 10 May 2014 07:43:54 +0000 (16:43 +0900)]
Improve the script for making package
To solve nasty problems dealing with ChangeLog, move the lxcf/package
directory to the top level directory of the git working tree. This
change still prevents the script for making ChangeLog from mixing into
the distributed materials.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hdeyuki Niwa [Sat, 10 May 2014 14:23:11 +0000 (23:23 +0900)]
added queue reboot, resume, and suspend
lxcf queue reboot UUID
lxcf queue resume UUID
lxcf queue suspend UUID
Hdeyuki Niwa [Sat, 10 May 2014 13:39:50 +0000 (22:39 +0900)]
Added queue start and stop commands.
lxcf queue start UUID
lxcf queue stop UUID
Argument is the uuid.
niwa-hideyuki [Fri, 9 May 2014 08:25:10 +0000 (17:25 +0900)]
stop libvirtd.service in container
niwa-hideyuki [Fri, 9 May 2014 07:54:49 +0000 (16:54 +0900)]
The container can be deleted by the queue cancel command.
niwa-hideyuki [Thu, 8 May 2014 08:28:27 +0000 (17:28 +0900)]
uuid is applied to the container made from sysgen and clone.
niwa-hideyuki [Thu, 8 May 2014 02:06:12 +0000 (11:06 +0900)]
Correction of ChangeLog
niwa-hideyuki [Thu, 8 May 2014 02:03:17 +0000 (11:03 +0900)]
The function to cancel the job under execution is added.
Even if the job specified with queue cancel is executing it,
it is possible to cancel.
TAMUKI Shoichi [Mon, 5 May 2014 10:25:02 +0000 (19:25 +0900)]
Modify makechlog.sh
Clean up and modify makechlog.sh a bit.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Wed, 7 May 2014 08:04:11 +0000 (17:04 +0900)]
An unused variable is deleted from lxcf-sched.c.
niwa-hideyuki [Wed, 7 May 2014 07:56:10 +0000 (16:56 +0900)]
The job under execution is displayed with queue list.
uuid and the command of the job under execution are displayed.
TAMUKI Shoichi [Mon, 5 May 2014 10:25:51 +0000 (19:25 +0900)]
Fix checking systemd for lxcf and lxcf-sched service
Add sanity check and clean up checking systemd for lxcf and lxcf-sched
service.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
NIWA Hideyuki [Mon, 5 May 2014 07:39:17 +0000 (16:39 +0900)]
The default of the object queue clear is changed to Q-QUEUE.
All queues were cleared so far.
Q-QUEUE is cleared when not is being specified the queue by the argument.
NIWA Hideyuki [Mon, 5 May 2014 06:43:34 +0000 (15:43 +0900)]
The system() function is changed into the processing of fork/exec.
The system() function is not used because the job under execution
can be interrupted, and the job is managed with waitpid.
NIWA Hideyuki [Sun, 4 May 2014 02:48:47 +0000 (11:48 +0900)]
The place of script that generates ChangeLog is changed.
script is moved to the directory above two.
To make ChangeLog, makechlog.sh is executed.
niwa-hideyuki [Sat, 3 May 2014 03:37:49 +0000 (12:37 +0900)]
When the service of lxcf is disabled, the execution of the lxcf command is made enable.
And, it is started.
The service of the object is the following.
- lxcf.service
- lxcf-sched.service
TAMUKI Shoichi [Fri, 2 May 2014 04:21:56 +0000 (13:21 +0900)]
Improve gitlog2changelog.py (printing itemizations)
When printing itemizations, the indents are now performed properly.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Fri, 2 May 2014 04:21:25 +0000 (13:21 +0900)]
Improve gitlog2changelog.py (line boundary check)
Improve line boundary check. Also, add year to the author line.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Fri, 2 May 2014 04:00:55 +0000 (13:00 +0900)]
The description of version 0.5-3 is added to specfile.
niwa-hideyuki [Fri, 2 May 2014 03:21:16 +0000 (12:21 +0900)]
The doc directory is added to specfile.
TAMUKI Shoichi [Sun, 27 Apr 2014 10:27:52 +0000 (19:27 +0900)]
Improve gitlog2changelog.py
Add a special workaround for the git log of LXC Facility.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:27:17 +0000 (19:27 +0900)]
Fix gitlog2changelog.py
Fix getlog2changelog.py to fit with the print format of recent git.
"git diff --stat" had learnt to print the status line in singular form
whenever applicable since git-1.7.10 (Correct singular form in diff
summary line for human interaction.)
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:26:34 +0000 (19:26 +0900)]
Update .gitignore
Add ChangeLog to .gitignore due to auto-generated.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:25:56 +0000 (19:25 +0900)]
Improve generating ChangeLog
ChangeLog is now auto-generated. The old ChangeLog is moved to NEWS.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:25:30 +0000 (19:25 +0900)]
Clean up ChangeLog and NEWS
Remove trailing whitespace.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:24:58 +0000 (19:24 +0900)]
Remove duplicated lxcf.spec in package/SPECS
To keep maintainability, remove duplicated lxcf.spec in package/SPECS.
This is explicitly copied by makepkg.sh before doing rpmbuild.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:24:21 +0000 (19:24 +0900)]
Fix lxcf.spec
Fix build.log "warning: File listed twice:" at the %doc directives.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:23:53 +0000 (19:23 +0900)]
Clean up lxcf.spec
Remove trailing whitespace.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 27 Apr 2014 10:23:22 +0000 (19:23 +0900)]
Improve makepkg.sh
Use "make clean" instead of "rm" manually.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Thu, 24 Apr 2014 21:36:00 +0000 (06:36 +0900)]
Improve copying directories in lxcf-createfile
When copying directory tree for container creation, deal with the
environment that /sbin, /bin, /lib and /lib64 directories are not only
symbolic links but also regular directories. If the directories are
regular directories, it will copy them recursively into the container.
On the other hand, if they are symbolic links, it will just copy the
symbolic links themselves into the container. Note, the directory
/lib/modules will be skipped.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Fri, 25 Apr 2014 06:39:35 +0000 (15:39 +0900)]
Deletion of wrong comment in specfile
niwa-hideyuki [Fri, 25 Apr 2014 06:00:03 +0000 (15:00 +0900)]
Correction of specfile concerning lxcf-sched.service
niwa-hideyuki [Fri, 25 Apr 2014 02:54:49 +0000 (11:54 +0900)]
Correction of specfile concerning systemd
TAMUKI Shoichi [Wed, 23 Apr 2014 05:31:14 +0000 (14:31 +0900)]
Improve making directories in lxcf-createfile
When /home and/or /usr are not copied, just make the top directories
in the container to match with other directories.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Wed, 23 Apr 2014 05:30:45 +0000 (14:30 +0900)]
Improve copying /var directory in lxcf-createfile
When copying /var directory for container creation, the directories
/var/cache/lxc, /var/lib/lxc and /var/lib/docker are now skipped, and
then remove the contents in /var/log/lxc in case that lxc is installed
in the system.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Thu, 24 Apr 2014 02:38:06 +0000 (11:38 +0900)]
Arrangement of Makefile and specfile
niwa-hideyuki [Thu, 24 Apr 2014 02:35:54 +0000 (11:35 +0900)]
Deletion of unused variable of C source.
TAMUKI Shoichi [Mon, 21 Apr 2014 06:51:42 +0000 (15:51 +0900)]
Improve removing unnecessary contents in lxcf-createfile
When removing unnecessary contents in the created container, keep the
top directories that are no need to remove. Incidentally, clean up
around creating /var.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Thu, 17 Apr 2014 01:56:00 +0000 (10:56 +0900)]
Deletion of unnecessary binary
Hideyuki Niwa [Thu, 17 Apr 2014 01:25:31 +0000 (10:25 +0900)]
changelog of specfile is renewed.
The update history of the package is filled in on changelog.
Hdeyuki Niwa [Tue, 15 Apr 2014 12:00:04 +0000 (21:00 +0900)]
correction of lxcf.spec
Hideyuki Niwa [Tue, 15 Apr 2014 06:04:05 +0000 (15:04 +0900)]
Correction of Changelog
Hideyuki Niwa [Tue, 15 Apr 2014 04:56:07 +0000 (13:56 +0900)]
Addition of skipjob command.
Addition of skipjob command.
Correction of document related to skipjob
Hideyuki Niwa [Tue, 15 Apr 2014 01:37:12 +0000 (10:37 +0900)]
Deletion of unnecessary message when package is installed
TAMUKI Shoichi [Mon, 14 Apr 2014 21:34:43 +0000 (06:34 +0900)]
Improve copying bash initialization files in lxcf-createfile
When bash is invoked as an interactive login shell, after reading and
executing commands from the file /etc/profile first, it then looks
for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order,
and reads and executes commands from the first one that exists and is
readable. Similarly, when a login shell exits, bash reads and
executes commands from the file ~/.bash_logout, if it exists.
Therefore, those files also should be copied into the container as
long as they exist. Incidentally, clean up around creating /var.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hideyuki Niwa [Mon, 14 Apr 2014 08:18:50 +0000 (17:18 +0900)]
The processing of a new jobskip command is added.
Hideyuki Niwa [Mon, 14 Apr 2014 01:41:52 +0000 (10:41 +0900)]
Update and deploy are added to the command that submit can do.
Hideyuki Niwa [Mon, 14 Apr 2014 01:30:05 +0000 (10:30 +0900)]
The command that can be used with update is limited.
Only rpm, yum, and apt-get can be used.
Hideyuki Niwa [Mon, 14 Apr 2014 01:18:03 +0000 (10:18 +0900)]
The generation of /proc directory is added.
/proc directory is needed at update.
Hideyuki Niwa [Mon, 14 Apr 2014 00:59:16 +0000 (09:59 +0900)]
Warning messages are deleted at update.
TAMUKI Shoichi [Sun, 13 Apr 2014 08:41:06 +0000 (17:41 +0900)]
Introduce "lsdir" bash function in lxcf-createfile
Previously, when copying directory tree for container creation, a part
of files and directories, whose name begins with dot, will be skipped.
Furthermore, some system administrators prefer to customize the shell
environment like this: <<< export LS_OPTIONS="--color=auto -F -N -T0"
function ls { command ls $LS_OPTIONS "$@" ; } ; export -f ls >>> into
~/.bashrc, so as to live a pleasant life. (In general, the individual
files such as ~/.bashrc allow you to make changes as you would like.)
In that situation, copying directory tree for container creation does
not work properly. To avoid their problems, introduce "lsdir" bash
function.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hdeyuki Niwa [Sun, 13 Apr 2014 13:10:56 +0000 (22:10 +0900)]
Improvement of update
Update of joint container two or more models is prevented from failing.
Hdeyuki Niwa [Sat, 12 Apr 2014 13:46:58 +0000 (22:46 +0900)]
The bug to which the json file cannot be read with sysgen -c is corrected.
niwa-hideyuki [Thu, 10 Apr 2014 06:30:14 +0000 (15:30 +0900)]
Trivial correction of lxcf.spec
TAMUKI Shoichi [Thu, 10 Apr 2014 03:29:19 +0000 (12:29 +0900)]
Adjust the clean rule in Makefile
Fix the problem when "make clean libdir=/usr/lib" is specified.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Ken ICHIKAWA [Thu, 10 Apr 2014 04:52:46 +0000 (13:52 +0900)]
Add .gitignore
Define unneeded files for our git repository.
Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
Yasunori Goto [Thu, 10 Apr 2014 02:23:15 +0000 (11:23 +0900)]
Make natural expression for lxcf-start
Hi,
I suppose that "is being start" is not natural expression a bit.
So, I would like to make it more natural.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Ken ICHIKAWA [Thu, 10 Apr 2014 01:01:14 +0000 (10:01 +0900)]
Support writing into SysV IPC related parameters
Libvirt-lxc mounts /proc/sys with read-only attribute as default.
Therefore, we cannot change IPC related parameters under
/proc/sys/kernel such as shmmax inside containers.
However, containers' IPC related parameters are separated from
host by IPC namespace. As a result, changing IPC related parameters
inside a container has no effect on host but has effect on only the
container.
This patch changes domain XML for containers to additionally mount
IPC related parameters under /proc/sys/kernel as writable so that
we can change IPC related parameters inside containers.
Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
niwa-hideyuki [Thu, 10 Apr 2014 01:07:06 +0000 (10:07 +0900)]
clean up of makepkg.sh
The package is able to be made excluding root.
TAMUKI Shoichi [Wed, 9 Apr 2014 21:34:54 +0000 (06:34 +0900)]
Clean up of lxcf-createfile
There are no logical changes, clean up only to keep maintainability.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Wed, 9 Apr 2014 21:34:25 +0000 (06:34 +0900)]
Fix the rule in Makefile
Fix the .prepare and clean rule due to libdir=/usr/lib64 as default.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Wed, 9 Apr 2014 03:08:59 +0000 (12:08 +0900)]
Package making environment to shift to lib64
Ken ICHIKAWA [Wed, 9 Apr 2014 01:16:05 +0000 (10:16 +0900)]
Specify absolute path for virsh
Almost points are specifying /usr/bin/virsh for virsh path but
some points were just specifying "virsh" without absolute path.
Because of that, /usr/local/bin/virsh was executed along with
/usr/bin/virsh unexpectedly on my environment.
This patch fixes to specify absolute path for virsh.
Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
TAMUKI Shoichi [Tue, 8 Apr 2014 21:36:06 +0000 (06:36 +0900)]
Fix typo in lxcf-setup
Fix typo while converting /usr/lib/lxcf to /usr/lib64/lxcf.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
niwa-hideyuki [Tue, 8 Apr 2014 08:06:21 +0000 (17:06 +0900)]
/usr/lib/lxcf is moved to /usr/lib64/lxcf.
Hideyuki Niwa [Mon, 7 Apr 2014 05:48:37 +0000 (14:48 +0900)]
Wrong replacement processing is deleted for clone.
MUNEDA Takahiro [Sat, 5 Apr 2014 15:28:35 +0000 (11:28 -0400)]
lib: Cleanup lxf-* python scripts
Clean up warnings detected by flake8.
This patch just fixes warnings, no functional change.
TAMUKI Shoichi [Sat, 5 Apr 2014 03:36:51 +0000 (12:36 +0900)]
Trivial fix in lxcf-createfile
Fix some comments to fit with the current situation. Also, separate
the procedure of /home and /root to match with other procedures.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hideyuki Niwa [Fri, 4 Apr 2014 08:13:30 +0000 (17:13 +0900)]
change of version
Hideyuki Niwa [Fri, 4 Apr 2014 08:11:02 +0000 (17:11 +0900)]
start release-0.5
TAMUKI Shoichi [Wed, 2 Apr 2014 21:46:04 +0000 (06:46 +0900)]
Adjust the uninstall rule in Makefile
If "DESTDIR" is something defined (i.e. making the package,) prevent
invoking "systemctl disable lxcf-sched."
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hideyuki Niwa [Wed, 2 Apr 2014 04:54:40 +0000 (13:54 +0900)]
Correction of new ChangeLog of 0.4 release
Hideyuki Niwa [Tue, 1 Apr 2014 08:17:32 +0000 (17:17 +0900)]
Start when lxcf-sched is installed
TAMUKI Shoichi [Sun, 30 Mar 2014 08:06:29 +0000 (17:06 +0900)]
Improve error handling of lxcf command wrapper
Previously, if you mistype a lxcf command, you'd get a script error
message from shell. To avoid this, check the command existence before
invoking it. Also, during the transition to the lxcf interactive
mode, invoke sh instead of bash in order to avoid reading and
executing bashrc.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sun, 30 Mar 2014 08:05:08 +0000 (17:05 +0900)]
Clean up related to lxcf wrapper and rc script
There are no logical changes, clean up only.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Sat, 29 Mar 2014 12:05:56 +0000 (21:05 +0900)]
Fix of Makefile
Fix around make install due to newly addition of submit and queue
command. Also, avoid install empty lxcf-messages file.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
TAMUKI Shoichi [Fri, 28 Mar 2014 09:58:52 +0000 (18:58 +0900)]
Fix around lxcf sysgen (Python script)
Fix shebang line and place a UTF-8 byte-order marker at the beginning
of the file. Also, fix print() functions to fit with both Python 2
and 3.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hideyuki Niwa [Tue, 1 Apr 2014 06:45:49 +0000 (15:45 +0900)]
Optional -p is applied to mkdir.
TAMUKI Shoichi [Sat, 29 Mar 2014 10:14:31 +0000 (19:14 +0900)]
Clean up of lxcf-createfile
There are no logical changes, clean up only.
Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Hideyuki Niwa [Fri, 28 Mar 2014 08:00:01 +0000 (17:00 +0900)]
Addition of lxcf-sched service
Hideyuki Niwa [Fri, 28 Mar 2014 06:48:08 +0000 (15:48 +0900)]
A part of UTF-8 code and the print sentence of python are mended.
Hideyuki Niwa [Fri, 28 Mar 2014 06:43:18 +0000 (15:43 +0900)]
revert lxcf-create