Sequence table recovery possible?

2016-09-08 Thread Zack Payton
Yo cloudstack users and devs!
A corrupt HDD caused my mysql cloud.sequence table to become corrupted
(misconfig didn't put mysql data dir on zfs).  I have multiple cloudstack
installations though and am able to look at a valid sequence table example:

mysql> select * from sequence;
+-+---+
| name| value |
+-+---+
| checkpoint_seq  | 1 |
| networks_seq|   218 |
| physical_networks_seq   |   202 |
| private_mac_address_seq | 1 |
| public_mac_address_seq  | 1 |
| storage_pool_seq|   200 |
| vm_instance_seq |   202 |
| vm_template_seq |   215 |
| volume_seq  | 1 |
+-+---+
9 rows in set (0.00 sec)


For my now corrupted cloudstack database, is there any way to glean the
appropriate values that I can use to repopulate the table?  I'm hesitant
just copy the table from my valid instance for obvious reasons.

Any idea how I can recover the appropriate values for
physical_networks_seq, physical_networks_seq, storage_pool_seq,
vm_instance_seq, vm_template_seq?

Thanks in advance,
Z


Re: vrouters cannot start after upgrade from 4.2.1 to 4.3

2014-05-30 Thread Zack Payton
When you deleted the systemvm-kvm-4.3 template and it gave you the error
message Cannot use reserved names for templates how did you reinstall?


On Wed, Mar 26, 2014 at 1:39 PM, stevenliang stevenli...@yesup.com wrote:

 now my host is normal, and ssvm started, but cpvms and vrouters are still
 in Stopped state.
 the management server's log is http://pastebin.com/Df5GGaMX



 On 26/03/14 11:58 AM, Dean Kamali wrote:

 Please upload your management server logs to pastebin

 Thanks


 On Wed, Mar 26, 2014 at 11:55 AM, stevenliang stevenli...@yesup.com
 wrote:

  yes, I used the release note tp register system template.


 On 26/03/14 11:52 AM, Andrei Mikhailovsky wrote:

  Have you used the release note's upgrade guide and upgraded the system
 vm
 templates?

 - Original Message -
 From: stevenliang stevenli...@yesup.com
 To: users@cloudstack.apache.org
 Sent: Wednesday, 26 March, 2014 3:46:43 PM
 Subject: Re: vrouters cannot start after upgrade from 4.2.1 to 4.3

 I have two zones(one basic, one advanced), when I registered system
 template, I chose all zone, but after finished download, I only found
 one zone had new system template, so I registered for another zone.
 After I finished the last step of upgrading, the vrouters could not
 start.


 On 26/03/14 11:06 AM, Andrei Mikhailovsky wrote:

  This usually happens if ACS can't get access to the new system vm
 templates. What does the management log say? Without much details from
 your
 side it is hard to help unfortunately,

 Andrei

 - Original Message -
 From: stevenliang stevenli...@yesup.com
 To: users@cloudstack.apache.org
 Sent: Wednesday, 26 March, 2014 2:02:15 PM
 Subject: vrouters cannot start after upgrade from 4.2.1 to 4.3

 Hi,

 After upgraded from 4.2.1 to 4.3, my vrouters cannot start.
 Please help.

 Steven





local storage ?

2014-04-07 Thread Zack Payton
Hi there,

I have a KVM hypervisor with 8 locally attached drives.
I would ideally like to add the 8 drives to a VM and allow them it to
leverage all of the spindles simultaneously.  Reading through the
documentation, I don't see any obvious way to do this.

The reason I seek a configuration of this type is because that is what is
recommended for a host running the Kafka queueing service.

Any assistance on this matter would be greatly appreciated.
Thank you!
Sincerely,
Z


Re: local storage ?

2014-04-07 Thread Zack Payton
Damn, was hoping for JBOD.
Additionally, I don't have a raid controller.

Thanks anyhow.


On Mon, Apr 7, 2014 at 9:52 AM, Nux! n...@li.nux.ro wrote:

 On 07.04.2014 17:47, Zack Payton wrote:

 Hi there,

 I have a KVM hypervisor with 8 locally attached drives.
 I would ideally like to add the 8 drives to a VM and allow them it to
 leverage all of the spindles simultaneously.  Reading through the
 documentation, I don't see any obvious way to do this.

 The reason I seek a configuration of this type is because that is what is
 recommended for a host running the Kafka queueing service.

 Any assistance on this matter would be greatly appreciated.
 Thank you!
 Sincerely,
 Z


 Hi,

 I think the closest you can get to this with ACS is to make a raid10 and
 use that for local storage (/var/lib/libvirt)

 HTH
 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro



Zone DNS, Virtual Routers, and DHCP

2014-02-07 Thread Zack Payton
Hi dudes,

I'm trying to host DNS off of one of the VMs that I have here in the KVM
cluster.
Any way to set a static IP for a server (or more preferably a static DHCP
lease)?
I tried changing the zone DNS IP to that of my DNS VM but I have to restart
the virtual routers which then causes my DNS VM to get a new IP.  Is the
only real solution here to run my DNS on bare metal?

Thanks,
Z


Re: What is your setup?

2014-02-06 Thread Zack Payton
What about Xen makes it superior to KVM?


On Wed, Feb 5, 2014 at 11:56 PM, Serge van Ginderachter 
se...@vanginderachter.be wrote:

 KVM, as we need Ceph support
 

 On 6 February 2014 04:39, Outback Dingo outbackdi...@gmail.com wrote:

   Xen= BMW
  
 
  great ride, reasonable costs, easy to maintain
 

 BMW reasonable cost? You shouldn't drink and drive.
 



Re: Cloudstack 4.2.1, KVM Advanced networking headaches

2014-02-04 Thread Zack Payton
Tanner,

I myself am very new to cloudstack so take what I say with a few grains of
salt.
I am using KVM with bonded interfaces as well though mine are in
active/active mode (switch supports it).  Additionally, I used Centos
rather than Ubuntu.

I have never been able to get CloudStack KVM to work when I tried to do the
management on the same bond as the guest/public networks.  For my
configuration, I set up 1 dedicated interface for management (on the switch
this was configured as an access port) and then configured it to bridge via
cloudbr0.  Then, I set up my bond0 interface to bridge to cloudbr1.  On
advanced zone configuration, I set my management network KVM label to be
cloudbr0 and then both public and guest kvm labels to be cloudbr1 (note
that on the switch the aggregated port connecting to the bond0 physical
port was configured as an 802.1q trunk).

After that, my biggest difficulties were to get the VLANs for the guest up
and running, as well as ensuring that the public network had access to a
DNS server, and internet routing so that the SSVM could download the
default template as well as connect to the secondary storage.

If you have a 3rd NIC card in those machines, my advice would be to that
for management and leave the guest/public networks to the bonded interface.
 If you don't have a 3rd NIC, forget about the bonding and just use one NIC
for guest/public and one for management.  I'm sure that there is a way to
get around this but after an excruciating number of attempts, this has been
the only way that I've found to make it work.

I'm sure that the dudes on this list might have some better advice though
because as I said, I'm rather new to CloudStack.

Good Luck,
Z


On Tue, Feb 4, 2014 at 9:50 AM, Tanner Danzey arkan...@gmail.com wrote:

 Hello all. My name is Tanner Danzey. Just a little introduction since this
 will be my first post to this list. I am from Fargo, North Dakota and I
 have had fairly significant Linux  Linux server experience for about four
 years.

 My coworker and I are working on rolling a Cloudstack cloud using Ubuntu
 13.10, Ceph, Rados Gateway (S3) and KVM and commodity hardware. We
 currently have our Ceph and Rados setup under lock and key as far as our
 testing can tell. Installing the management server is a breeze, so that's
 not an issue either. Our issue seems to be of a networking nature.

 Our desire to use advanced networking has been made complicated by our
 other desires. Originally we planned to use many LACP  trunk
 configurations to achieve highest bandwidth and redundancy possible, but
 our discovery that the switch we are using (two Catalyst 2960 48 port
 switches in stacked configuration) only allows for six port channels
 complicated that plan. Now we are still using bonded adaptors but in
 active-backup mode so that we do not need switch side configuration tricks
 or port channels. I have attached an example of our KVM hypervisor
 configuration.

 We have interface bond0 in active-backup mode bridged with em1 and em2.
 Both of those ports are connected to switch trunk ports. Here's where
 things get silly. Our KVM nodes are able to be pinged and managed on the
 management IP assigned and when we create a zone and assign the bridges
 their respective traffic. However, they are not connected to the public
 network. Some variations of this configuration even result in no
 connectivity other than link local.

 Essentially, we are trying to find the best way to approach this
 situation. We are open to using Open VSwitch. Our VLANs will be 50 as
 public, 100 as management / storage, and 200-300 as guest VLANs unless
 there is a more pragmatic arrangement.

 Our plan after this deployment is to help brush up documentation where
 possible regarding some of these edge-case scenarios and potentially do a
 thorough writeup. Any and all help is appreciated, and if you require
 compensation for the help I'm sure something can be arranged.

 Thanks in advance, sorry for the overly long message :)



DNS question

2014-02-04 Thread Zack Payton
Is it possible to name different DNS servers per network or per account?
Example 1:  I would like to provision a network for a customer that uses a
DNS server they control.
Example 2:  I would like to provision a network and then a DNS server just
for that network and all ensuing guests provisioned on that network should
be assigned the locally provisioned DNS server.

Thanks,
Zack


Re: DNS question

2014-02-04 Thread Zack Payton
Also curious if it's possible via CloudStack (without hacking up the
virtual routers) to create a permanent static DHCP lease for a VM?  If I'm
going to start creating DNS entries for hosts on the network, I want to
ensure that they won't change.


On Tue, Feb 4, 2014 at 10:28 PM, Zack Payton zpay...@gmail.com wrote:

 Is it possible to name different DNS servers per network or per account?
 Example 1:  I would like to provision a network for a customer that uses a
 DNS server they control.
 Example 2:  I would like to provision a network and then a DNS server just
 for that network and all ensuing guests provisioned on that network should
 be assigned the locally provisioned DNS server.

 Thanks,
 Zack





Server address passed to cloudstack agent

2014-02-02 Thread Zack Payton
Hi there,

I have multiple IP addresses assigned to the CS Management server on
different VLANs.  When I go add the host to the Infrastructure it tries to
connect back the wrong IP address and is thusly blocked by our inter-vlan
access policy.  What's recommended mechanism for specifying the server IP
address?

cloudstack-setup-agent  -m *10.1.1.2* -z 1 -p 1 -c 1 -g
03408e21-366b-3d94-8fe0-23aa00416bfd -a --pubNic=cloudbr1 --prvNic=cloudbr1
--guestNic=cloudbr1

Here, the setup-agent script is passed 10.1.1.2 when it really should be
passed 10.1.2.2.

Any assistance on this matter would be appreciated.
Thanks,
Z


Re: Server address passed to cloudstack agent

2014-02-02 Thread Zack Payton
Thanks guys.  In the end I just set the Global Settings host variable and
that worked great rather than messing around with the host files as there
are other services currently running on the box that depend on hostname
--fqdn coming back with the hostname that resolves to 10.1.1.2.

Responses much appreciated.
Z


On Sun, Feb 2, 2014 at 5:54 PM, Kirk Kosinski kirkkosin...@gmail.comwrote:

 Hi, the IP host connect to can be configured with the host parameter
 in Global Settings.  The initial setup probably detected the 10.1.1.2 IP
 and configured the host parameter with it, but you should change it to
 the desired IP.

 Best regards,
 Kirk

 On 02/02/2014 12:48 AM, Zack Payton wrote:
  Hi there,
 
  I have multiple IP addresses assigned to the CS Management server on
  different VLANs.  When I go add the host to the Infrastructure it tries
 to
  connect back the wrong IP address and is thusly blocked by our inter-vlan
  access policy.  What's recommended mechanism for specifying the server IP
  address?
 
  cloudstack-setup-agent  -m *10.1.1.2* -z 1 -p 1 -c 1 -g
  03408e21-366b-3d94-8fe0-23aa00416bfd -a --pubNic=cloudbr1
 --prvNic=cloudbr1
  --guestNic=cloudbr1
 
  Here, the setup-agent script is passed 10.1.1.2 when it really should be
  passed 10.1.2.2.
 
  Any assistance on this matter would be appreciated.
  Thanks,
  Z
 



Re: Error building Cloudstack 4.2 RPMs

2013-10-22 Thread Zack Payton
On Tue, Oct 8, 2013 at 9:51 PM, Jamie Carranza gojamieg...@gmail.com wrote:
 Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up against
 the same error, this looks like the most important part:

 Failed tests:
 appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest): error
 snmpHelper list size not as expected  expected:0 but was:2

So I joined this list just to report the answer to your question
Jamie.  I found the solution after digging into the code.  Essentially
you need to configure your host to pass the hostname --fqdn test
before the SnmpAppenderTest class will pass the junit test.

I simply added my hostname to /etc/hosts and was able to build
successfully.  Just wanted to share so if anyone else caring to build
from source ran into this issue, that they would know what to do.
FYI, this was on Centos 6.4 64-bit with Cloudstack 4.2.


Sincerely,

Z