"I want to try this" sample in USECASES.md fails to apply

Bug #1411424 reported by Tim Freund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-ceph
In Progress
Undecided
Tim Freund

Bug Description

I tried to configure a virtual machine using the single machine trial configuration suggested in USECASES.md:

class { 'ceph::conf':
  fsid => generate('/usr/bin/uuidgen'),
  mon_host => $::ipaddress_eth0,
  authentication_type => 'none',
}
ceph::mon { 'a':
  public_addr => $::ipaddress_eth0,
  osd_pool_default_size => 1,
  authentication_type => 'none',
  };
ceph::osd { '/dev/vdb': };

This failed with a syntax error:

Error: Could not parse for environment production: Syntax error at ';' at /tmp/ceph.puppet:10

In addition to the syntax error, it looks like the module has changed slightly since this sample was made. I found that the following passed syntax checks and applied cleanly on a new virtual machine running Ubuntu 14.04:

class { 'ceph':
  fsid => generate('/usr/bin/uuidgen'),
  mon_host => $::ipaddress_eth0,
  authentication_type => 'none',
  osd_pool_default_size => 1,
}

ceph::mon { 'a':
  public_addr => $::ipaddress_eth0,
  authentication_type => 'none',
}

ceph::osd { '/dev/vdb': }

I will submit a patch with this change, and I am willing to make any suggested changes or additions.

Two additional considerations for RHEL and CentOS: The manifest above does not apply cleanly to RHEL or CentOS machines unless the user first installs the xfsprogs package and applies the following puppet code:

class { 'ceph::repo':
}

Ceph isn't available in the default RHEL repositories, and mkfs doesn't include XFS capabilities in a default RHEL installation. I suspect that both of these items may warrant their own bug reports.

Tim Freund (timfreund)
Changed in puppet-ceph:
assignee: nobody → Tim Freund (timfreund)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-ceph (master)

Fix proposed to branch: master
Review: https://review.openstack.org/147668

Changed in puppet-ceph:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-ceph (master)

Change abandoned by Andrew Woodward (<email address hidden>) on branch: master
Review: https://review.openstack.org/147668
Reason: The changes proposed are already in master

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.