ExamarCorp / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

WHMCS Use SUSPEND By VEID or by IP #418

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

i have whmcs V5, to suspend the vm you uitlisez hostname

Why?

For if the person changes the hostname, it is impossible to suspend the vm 
because it is not the right name.

Why not suspend using the ip or saw himself?

VEID not change and if it manages well the cluster openvz, it is unique!

ip address the same as it is unique.

thank you very much
Actual result:

Expected result:

Version of the product: 2.0

Server OS: centos v6 X64

Browser: firefox 11

Original issue reported on code.google.com by dedizo...@gmail.com on 26 Mar 2012 at 12:33

GoogleCodeExporter commented 9 years ago
Thank you for reporting this issue.  I have confirmed the WHMCS module does use 
the hostname to suspend/terminate the selected VS (virtual server).  The 
functions first disable/remove the user and then suspends/removes the VS by 
hostname.

One method we could use would be to suspend by the IP but in the off chance 
that the IP gets changed that would mess it up as well.

I'm working on creating an additional field where what i'm calling the VSID 
"Virtual Server ID" associated with the VS is stored in WHMCS database related 
to that specific VS.  This way you can change anything about the VS and WHMCS 
will still know specifically which one it is.  I may add a function to 
translate the VEID to the VSID but the first update will be to just associate 
the VS with the VSID (specific ID assigned by OWP)

I hope to have something released within the next few days

Original comment by tripf...@gmail.com on 27 Mar 2012 at 2:38

GoogleCodeExporter commented 9 years ago
Very nice ;)

For "I may add a function to translate the VEID to the VSID"

f the administrator is working way clean and organized. he always uses a 
different ID.

I can not imagine a server admin manage 10 vm ID with three identical, this 
could affect its management and above all a waste of time!

I have 400VM saw himself with 400 different and unique

So fill handle this in a more fields would be great.

If you need me to test your module, I am one of the contributors, I remain at 
your disposal if you need.

Alex

Original comment by dedizo...@gmail.com on 27 Mar 2012 at 2:50

GoogleCodeExporter commented 9 years ago
Good point didn't think about multiple servers, we will just stick with the 
VSID and maybe work on having it displayed somewhere in the control panel so 
it's easy for the admin to set the ID, maybe even implement some type of checks 
to verify against the IP, hostname, and user or something.  

I'll be playing with it this week and should have an update soon.

I work on a lot of WHMCS development so I have a few WHMCS licenses just for 
testing (i'm currently testing against v5 and v4). 

Original comment by tripf...@gmail.com on 27 Mar 2012 at 4:16

GoogleCodeExporter commented 9 years ago
Thank you for your feedback

I expect this update, good luck to you

Original comment by dedizo...@gmail.com on 27 Mar 2012 at 4:25

GoogleCodeExporter commented 9 years ago
I have updated the module to use the virtual server id instead of the hostname. 
 I have tested it on WHMCS v4 and v5.

The pull request is pending, you can get a copy of the updated module from my 
fork on github:

https://github.com/tripflex/owp/blob/master/utils/whmcs/owp/owp.php

Original comment by tripf...@gmail.com on 30 Mar 2012 at 7:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
'Object not found.' = same ip or veid or hostname

Ths new module is best.

No error in V2

Great Job

Original comment by dedizo...@gmail.com on 1 Apr 2012 at 11:12

GoogleCodeExporter commented 9 years ago
Works fine, problem was in empty record in mod_owp table. 

Original comment by anton.ka...@gmail.com on 1 Apr 2012 at 4:18

GoogleCodeExporter commented 9 years ago
Yes it will only work for newly created virtual servers.  I added the option to 
put in the VSID on the products page, but you will need to determine the 
correct VSID, look for more info in the api documentation.

It's something i put together quick, i will be adding a lot more functionality 
in the future.

Original comment by tripf...@gmail.com on 1 Apr 2012 at 5:21

GoogleCodeExporter commented 9 years ago
It's posible to use internal OS templates from WHMCS (Configurable Option 
Groups -> Operation Systems) with new version of module? 

Original comment by anton.ka...@gmail.com on 4 Apr 2012 at 8:22

GoogleCodeExporter commented 9 years ago
yes it's possible.

edit your catalogue (service / product ) 

Original comment by dedizo...@gmail.com on 4 Apr 2012 at 8:34

GoogleCodeExporter commented 9 years ago
Can you explain me, I have see at modules setup in product setting list this is 
list OS templates from OWP. And I have product/service -> configurable Option 
with OS dropdown box. How my customer can install OS from dropdown box when 
ordering? (merge OS template list with configurable Option) Now I have install 
OS manually changing OS type in product setup according in order. 

Original comment by anton.ka...@gmail.com on 4 Apr 2012 at 12:16

GoogleCodeExporter commented 9 years ago
It's not possible to do what you want right now.  The only way you can specify 
the OS is through the product configuration.  I'm working on an enhancement to 
allow specifying the OS during order but right not that feature is not 
available.

Original comment by tripf...@gmail.com on 4 Apr 2012 at 12:19

GoogleCodeExporter commented 9 years ago
Thnx, we will waiting your next module releases, nice work. 

Original comment by anton.ka...@gmail.com on 4 Apr 2012 at 12:31

GoogleCodeExporter commented 9 years ago
How I can now suspend existing users with no record in mod_owp?  It's possible 
make script for adding all existing VPS to db? 

Original comment by anton.ka...@gmail.com on 4 Apr 2012 at 5:25

GoogleCodeExporter commented 9 years ago
edit table or insert record manual :p

Original comment by dedizo...@gmail.com on 4 Apr 2012 at 5:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 1 May 2012 at 10:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey everyone,

can someone please explain me why am I getting an "Object not found" error when 
accepting an order in WHMCS and trying to create a new VPS? The module was 
working find and creating VPSs, I'm not sure on which moment it started to show 
that error..

Thank you in advance,
Warm regards,
Evgeny Bragin

Original comment by bragi...@gmail.com on 11 Jun 2012 at 6:04

GoogleCodeExporter commented 9 years ago
braginev email me myles-at-hostt.net and ill see if i can figure it out for 
you.  I will need SSH and WHMCS access.

Original comment by tripf...@gmail.com on 15 Jun 2012 at 3:55