Skip to content

Commit dd1ae5b

Browse files
committed
Add more makevm checks
1 parent 7a07ecb commit dd1ae5b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

staff/sys/makevm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,20 @@ def _main(args):
256256
print('Cancelled.')
257257
sys.exit(2)
258258

259+
if args.ceph and args.vg != 'vg':
260+
print("Warning: You have Ceph backing storage, but specified a non-default VG")
261+
262+
if not confirm():
263+
print('Cancelled.')
264+
sys.exit(2)
265+
266+
if not args.ceph and args.ceph_pool != 'vm':
267+
print("Warning: You have LVM backing storage, but specified a Ceph pool")
268+
269+
if not confirm():
270+
print('Cancelled.')
271+
sys.exit(2)
272+
259273
# Check to make sure the IP address provided is an OCF IPv4 address
260274
ip_addr = ip_address(args.ip)
261275
if not is_ocf_ip(ip_addr) or not isinstance(ip_addr, IPv4Address):

0 commit comments

Comments
 (0)