First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 89956
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Printing Team <printing@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Steve Tousignant <Steve@genyinfo.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
vmware-net.diff vmware net only with removed service stuff patch Alexander Weber 2006-10-09 08:12 0000 2.97 KB Details | Diff
vmware-services.diff vmware services only with removed net stuff patch Alexander Weber 2006-10-09 08:17 0000 2.18 KB Details | Diff
vmware-split-patches.tgz Patches for splitting vmware application/x-compressed-tar Alexander Weber 2006-10-11 00:35 0000 1.72 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 89956 depends on: 23971 Show dependency tree
Bug 89956 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-21 12:13 0000
this bugs is some kind of replicate of bug #15492 

We need to restart samba deamon to have printer sharing activated.

Reproducible: Always
Steps to Reproduce:
1. Have CUPS and samba for restart with default config from example 
2. add samba and cups to default runlevels
3. reboot
4. try access printer after reboot. 

Actual Results:  
the printer are not listed 

Expected Results:  
The printer should work normaly

if we look at the service startup, cups is started right after samba so samba
dont load the printer on startup.

------- Comment #1 From Heinrich Wendel (RETIRED) 2005-04-23 03:08:03 0000 -------
added use samba to cupsd init file

------- Comment #2 From Martin Schlemmer (RETIRED) 2005-04-26 03:44:42 0000 -------
Ok, but now samba also still 'use cups', and you get:

----
 * Caching service dependencies ...
 *  Services 'samba' and 'cupsd' have circular
 *  dependency of type 'iuse';  continuing...

------- Comment #3 From Heinrich Wendel (RETIRED) 2005-04-26 04:03:13 0000 -------
samba herd: please remove use cups from samba-init

------- Comment #4 From Christian Andreetta (RETIRED) 2005-04-27 06:29:36 0000 -------
'use cupsd' removed

------- Comment #5 From Bjarke Istrup Pedersen 2005-04-28 07:30:43 0000 -------
Doesn't this make samba start BEFORE cups?
maybe it's just me, but cups should be running first, so samba can ask it for it's printers, or am i wrong?

------- Comment #6 From Heinrich Wendel (RETIRED) 2005-04-28 07:39:50 0000 -------
sorry, you are completly right, reverted the changes

this bug has to be in baselayout then

------- Comment #7 From Bjarke Istrup Pedersen 2005-04-28 07:42:06 0000 -------
ahh, thought so, didn't make much sense :)

------- Comment #8 From Christian Andreetta (RETIRED) 2005-04-28 07:46:53 0000 -------
You're right 8-/ ...

------- Comment #9 From Heinrich Wendel (RETIRED) 2005-05-10 08:49:34 0000 -------
initial reporter: does your problem persist?

------- Comment #10 From Steve Tousignant 2005-05-10 10:15:49 0000 -------
Yes the bugs still happen. 
I've played around the use flags to try solve the problem but with no success.

But then, i could try to get it work if i know where to look. Do you have some advice, or some place i should look for.

------- Comment #11 From Heinrich Wendel (RETIRED) 2005-05-10 10:23:13 0000 -------
try to change "use cups" to "after cups" in the samba init file

------- Comment #12 From Steve Tousignant 2005-05-12 08:04:49 0000 -------
I've tryed with 2 alternative for it. 
before cups 
and 
before cupsd 
nothing has change with these modification. But i've notice that Vmware sevice load bettween those 2 maybe this bug comming from a dependency in the vmware 4.5 suite ? I'll investigate on this case later.

------- Comment #13 From Steve Tousignant 2005-05-12 08:06:11 0000 -------
forget to tell i've also tryed the after cups and after cupsd thing :p

------- Comment #14 From Steve Tousignant 2005-05-12 10:00:45 0000 -------
I've checked up the init script of cups and in the depends functions there is a
use vmware. Why does cups need to use vmware, it should be vmware that use
cups.
I'll change the init script to add the depends in vmware and remove it from
cups.

I'll give more detail twomorrow morning if it has worked.

------- Comment #15 From Steve Tousignant 2005-05-13 06:06:47 0000 -------
Ok now everything is working just fine. 
Please remove the dependency to vmware in cups and add it to vmware.
I'll leave the bug open for you all to see it and it solution.

------- Comment #16 From Heinrich Wendel (RETIRED) 2005-05-14 07:20:57 0000 -------
no, cups needs to be started before vmware, take a look at bug #23971. what if
you change use vmware to after vmware?

------- Comment #17 From Steve Tousignant 2005-05-16 08:08:07 0000 -------
Well cups was started after vmware before. 
When i've change the dependency of cups to vmware and vmware to cups everything worked fine and cups was started way before samba or vmware had the chance to start ( Cups even started before dbus and HAL ).
I've checked the bugs #23971 about cups not starting because of vmnet not being there. I can say i dont have this problem with my installation of vmware.
I'll investigate about this problem and bugs and post my solution.

------- Comment #18 From Steve Tousignant 2005-05-17 14:08:07 0000 -------
Ok now the main problem is we have a big cyclique dependency problem that
affect
samba print with cups. And Vmware is causing all these problem.
So if i explain myself we have samba, vmware and cupsd starting in that order.
The reason why is that vmware need samba to startup the samba share into
vmware.
Cupsd need to be started after vmware because cups may be binded to a vmware
network interface. And to finish we need cupsd started before samba to have it
printer readed by the samba daemon. 
The only solution i can think of is reloading samba right after cupsd is
started
if and only if samba is already started.

------- Comment #19 From Peter J. de Vrijer 2005-06-16 15:29:39 0000 -------
Just learned about this problem the hard way. Couldn't print from
windows host, which I could yesterday (boot in between).

I added

/etc/init.d/samba restart

to /etc/conf.d/local.start

And since the local initscript is executed last ;-)

But solving this in the initscripts themselves would be appreciated!

------- Comment #20 From Steve Tousignant 2005-06-17 08:45:34 0000 -------
what i have done is remove the cups depedencies to vmware since my cups
configuration is not bind to vmware virtual network interface. Then everything
work fine. In the ideal world would be that cups retry to bind itself to the
interface servral time after being started and give an error after a maximum of
retry and have a bind to minimaly 127.0.0.1, not completly fails on startup and
brings down the deamon that depends on it.

------- Comment #21 From Czirkos Zoltan 2005-09-12 23:21:31 0000 -------
The reason for this bug is the additional "after vmware" in /etc/init.d/cupsd.
Vmware has "use samba", samba has "use cupsd" and cupsd has "after vmware", this
way it is a round dependency. Removing "after vmware" from /etc/init.d/cupsd
should solve the problem. And this is the logical way, because cupsd should be
started first, needed by samba, and samba is needed by vmware to share files and
printers with the host.

------- Comment #22 From Stefan Schweizer 2006-01-14 12:17:05 0000 -------
this bug cannot be fixed, because then #23971 would neeed to be reopened. If
you can think of a solution, that takes both issues into account please tell me
and reopen.

------- Comment #23 From Stefan Schweizer 2006-01-14 15:21:25 0000 -------
*** Bug 118270 has been marked as a duplicate of this bug. ***

------- Comment #24 From Jakub Moc (RETIRED) 2006-01-15 04:27:51 0000 -------
*** Bug 119065 has been marked as a duplicate of this bug. ***

------- Comment #25 From Jakub Moc (RETIRED) 2006-01-15 04:36:07 0000 -------
Well, causing lock up in init scripts and breaking boot process for users is
the worst of available options, this is not acceptable, really.

------- Comment #26 From Roy Marples (RETIRED) 2006-01-15 08:23:42 0000 -------
I'm amazed that no-one has thought of the obvious solution to the circular
dependency which is to split vmware networking off into a separate init script
(vmnet fex) or create it as a baselayout netscripts module.

------- Comment #27 From SpanKY 2006-01-19 01:43:06 0000 -------
*** Bug 119516 has been marked as a duplicate of this bug. ***

------- Comment #28 From Robert Davis 2006-01-19 16:56:15 0000 -------
Argh!  I have been having this problem (boot hanging) and finally found out it
is something with cups/vmware/samba and finally found this bug.

------- Comment #29 From SpanKY 2006-01-25 05:31:49 0000 -------
*** Bug 120256 has been marked as a duplicate of this bug. ***

------- Comment #30 From Jakub Moc (RETIRED) 2006-03-25 14:42:59 0000 -------
*** Bug 127570 has been marked as a duplicate of this bug. ***

------- Comment #31 From Richard Fish 2006-07-21 19:04:30 0000 -------
This is still a problem.  With parallel startup enabled, my system will hang
because samba uses cups, which wants to start after vmware, which wants to
start after samba.

I fix this by commenting out the "after samba" in the vmware script.  This
really seems to be the most logical thing to do to me.  In fact, some users may
want samba to start *after* vmware, for the same reason as cups; to allow samba
to bind only to the vmware interfaces.

Is there some use case for the vmware _services_ needing samba to be running? 
I can see the need when I actually startup a virtual machine, but I don't see
any value in requiring samba to be running for the vmware services.

------- Comment #32 From Carsten Lohrke 2006-10-09 05:39:37 0000 -------
*** Bug 150556 has been marked as a duplicate of this bug. ***

------- Comment #33 From Alexander Weber 2006-10-09 06:09:34 0000 -------
is it possible to split vmware: vmware-net that should be start before cups,
and vmware-services that use samba?

------- Comment #34 From Chris Gianelloni (RETIRED) 2006-10-09 07:04:45 0000 -------
Ehh... sure.

Feel free to attach a patch to do it and I'll commit it.  Otherwise, it'll have
to wait until I drum up some time to look into it more closely.  The init
script-fu for VMware kinda scares me.  The biggest problem is that we're
actually using VMware's init script with just a wrapper, instead of our own
script.

I've been planning on completely rewriting VMware's script as a Gentoo init
script, but that's still a ways off.  If someone wanted to do it for me and
submit it to this bug, I'd be much appreciative.

------- Comment #35 From Alexander Weber 2006-10-09 08:12:20 0000 -------
Created an attachment (id=99203) [details]
vmware net only with removed service stuff

vmware net only with removed service stuff

------- Comment #36 From Alexander Weber 2006-10-09 08:17:12 0000 -------
Created an attachment (id=99205) [details]
vmware services only with removed net stuff

------- Comment #37 From Alexander Weber 2006-10-09 08:24:46 0000 -------
I have 2 patches, for /etc/vmware/init.d/vmware, but the original have VMWare
Copyright. Your rewrite is welcome.
I dont use samba on vmware. For me it is a cosmetical bug.
sorry for broken english.


------- Comment #38 From Alexander Weber 2006-10-11 00:35:00 0000 -------
Created an attachment (id=99347) [details]
Patches for splitting vmware

Here is my full patchset for splitting by duplicate & remove-unneeded.
services contains only dhcpd and samba
litle more tested with vmware-player-1.0.1.19317-r4

#Installing-instructions:
/etc/init.d/vmware stop
cp /etc/init.d/vmware /etc/init.d/vmware.bak
cp /etc/init.d/vmware /etc/init.d/vmware-services
cp /etc/vmware/init.d/vmware /etc/vmware/init.d/vmware-base
cp /etc/vmware/init.d/vmware /etc/vmware/init.d/vmware-services
patch /etc/init.d/vmware init.d/vmware.diff
patch /etc/init.d/vmware-services init.d/vmware-services.diff
patch /etc/vmware/init.d/vmware-base mod/vmware-base.diff
patch /etc/vmware/init.d/vmware-services mod/vmware-services.diff
/etc/init.d/vmware-services start

------- Comment #39 From Jakub Moc (RETIRED) 2006-11-23 11:10:16 0000 -------
*** Bug 156047 has been marked as a duplicate of this bug. ***

------- Comment #40 From Mike Auty 2006-11-23 11:43:34 0000 -------
Guys, I hate to ask this so far down the line, but does vmware really require
samba?  As far as I was aware, vmware starts it's *own* samba server to support
the "shared folders" feature, which may not even be required, and otherwise I'm
not aware of any reason why the system samba needs to be started before vmware,
or why there is any dependency between them at all.

Could someone who has samba installed and uses vmware's shared folders feature
please verify whether vmware actually needs the system samba service to be
started to still function properly?

------- Comment #41 From Steve Tousignant 2006-11-23 14:12:45 0000 -------
The problem is not that vmware need samba to work but mostly samba need vmware
Network interface for some case on user config placing restriction on the
specific IP address. Sames goes with cups and other deamon that the user put a
specific configuration on an IP address provided by VMWare modules.

The provided solution is ideal cause it can overcome any kind of user config
that we could came across.

Regarding the the previous duplicate comment bugs, maybe juste the vmware init
script is not updated ?

------- Comment #42 From Richard Fish 2006-11-23 20:42:44 0000 -------
(In reply to comment #40)
> Guys, I hate to ask this so far down the line, but does vmware really require
> samba?

That was my question in #31.  I'm still not aware of any case where samba
and/or cups need to be running before the vmware services start.  I certainly
need them to start before my actual virtual machine(s) startup, but that
happens later.


> Could someone who has samba installed and uses vmware's shared folders feature
> please verify whether vmware actually needs the system samba service to be
> started to still function properly?

No, samba does not need to be running for shared folders to work.

------- Comment #43 From Jose Medellin 2007-04-26 17:44:28 0000 -------
Ok, the last comment was on 2006.  I just emerged vmware-player and added
vmware to default.  And this is still happening.  The loop is still there in
the init scripts.

any definitive solution?  What I did was that I substituded after samba to
after local.  That gave a circular because local is supposed to start after *,
but the machine started (grin).

Ok, I know that was an ugly fix, but at least it works.  Any approved fixes?

thanks

------- Comment #44 From Jurek Bartuszek 2007-08-16 22:44:51 0000 -------
It seems that I had to learn about this issue the hard way, too. Any progress?

------- Comment #45 From Stefan Schweizer 2007-11-09 10:22:16 0000 -------
removed after vmware from cups init scripts for now. Feel free to continue with
the splitup in vmware and readdit then.

First Last Prev Next    No search results available      Search page      Enter new bug