SlideShare a Scribd company logo
Introduction to accessing Gluster volumes
Eco Willson
Gluster Communities
A bit about me
Systems administration and DevOps background.
Joined Gluster in September of 2010
Current role is a technical liaison to GlusterFS upstream via
the Open Source and Standards organization (OSAS) within
Red Hat.
Fun by example! (cont.)
6) Upload a new picture
curl -v -X PUT -T CoolLinuxConfPic.jpg -H 'X-Auth-Token:
AUTH_tk3b615e3c5ada4e06b2354ed10a129ecb' -k
https://127.0.0.1:443/v1/AUTH_test/conference_pictures/pic8675309.jpg
7) Tag new picture with metadata
curl -v -X POST -H 'X-Auth-Token: AUTH_tk3b615e3c5ada4e06b2354ed10a129ecb'
-k https://127.0.0.1:443/v1/AUTH_test/conference_pictures -H 'X-Container-
Meta-Demo-Venue: LinuxCon EU 2012' -H 'X-Container-Meta-Creator: Eco' -H 'X-
Container-Meta-Creator-Taskmaster: John Mark Walker'
8) Ask the intern to verify the backups worked correctly since you need to step out
and the boss will ask while you are away
Overview of Gluster philosphy
Your data should be yours, always
We enable a framework of methods to allow data access
any way that suits you
This includes
* Traditional filesystem mounts
* Mount via NFS or CIFS
* Access via REST using our Unified File and Object (UFO) feature
* xlator framework for times when you need data to work better for the particular
needs of your environment or application
Accessing using traditional filesystem mounts
Requires the Gluster packages to be installed on the client
Including _netdev option in fstab will help avoid accidentally filling
up / partition
It is recommended that your mount points are clearly separate from your export
folders on the Gluster servers Consider the confusion that can occur if you have
the brick mounted on /mnt/export/gluster, and the client mount on
/mnt/gluster...
Accessing via NFS/CIFS
Gluster has it's own NFS server inline. Due to this, it is not recommended to run
native NFS on the Gluster servers
No additional Gluster packages need to be installed, although you may need to
add additional packages (e.g. nfs-common in ubuntu or rpcbind)
Many distributions use NFS by default now. Due to this, use the -o vers=3 option
when mounting
Include the _netdev option in fstab as you would with regular NFS
Don't forget that automatic failover does not occur when not using the Gluster
native client (but can still be achieved via carp or CTDB)
Accessing via Unified File and Object
Additional setup is required vs the standard Gluster setup
See Kalebs' post on Gluster.org:
http://www.gluster.org/2012/09/howto-using-ufo-swift-a-quick-and-dirty-setup-
guide/
Allows simultaneous access to your data from both developers and data
consumers (users and applications)
Why use UFO on Gluster?
No 5GB limit on transfer size
Takes advantage of the Gluster features you have already set up in your
volume (e.g., replication, automatic fail over and self-heal)
Global access to the same data, using the same namespace, at the same
time
Ease of use and management versus other clustering solutions
How does simultaneous access help me?
By being able to access the same data via both the REST API and traditional file
system access methods, you can work on the same data via the method you
choose, and using multiple methods, simultaneously, on the same data. This
allows you to use the newer cloud based storage without having to sacrifice
functionality for older programs that may be dependent on direct access to the
filesystem, for example, using anti-virus scanners on uploaded files. This also
means the changes I make via the filesystem, or via UFO, are being done against
the same exact object.
What do I need to test UFO with GlusterFS?
At least two nodes with Gluster installed already. For testing, virtual machines are
fine.
Some knowledge of the REST API or cURL to be able to address the Gluster volume
and files within it
What do I need to test UFO with GlusterFS?
At least two nodes with Gluster installed already. For testing, virtual machines are
fine.
Some knowledge of the REST API or cURL to be able to address the Gluster volume
and files within it
Common Commands
Create an authentication token
curl -v -H 'X-Storage-User: gv0:admin' -H 'X-Storage-Pass:admin' -k
https://127.0.0.1:443/auth/v1.0/
Create a new container
curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test/pictures -k
Display existing containers
curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test -k
Common Commands
Create a new object in a container
curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test/pictures/dog -H 'Content-
Length: 0' -k
List all objects in a container
curl -v -X GET-H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test/images -k
Common Commands
Delete a container
curl -v -X DELETE -H 'X-Auth-Token:
AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test/pictures/dog -H 'Content-
Length: 0' -k
Delete an object in a container
curl -v -X DELETE -H 'X-Auth-Token:
AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://example.storage.com:443/v1/AUTH_test/
pictures/cat -k
Some things to remember for Gluster with SWIFT
When we reference “account”, we are referring to the gluster volume
When adding users, the second field is where you specify the Gluster volume. In
the following string:
user_test_tester = testing .admin
Replace “test” with the Gluster volume
A container lives within a Gluster volume, and can be thought of as a logically
separated space to execute commands
The “Container Server” handles listing objects
The “Account Server” handles listing the Gluster volumes (remember 'accounts'
from above)
Fun by example!
1) Get an auth token:
curl -v -H 'X-Storage-User: ufo:test' -H 'X-Storage-Pass: test' -k
https://127.0.0.1:443/auth/v1.0
2) List containers in a Gluster volume named “test”
curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://127.0.0.1:443/v1/AUTH_test -k
3) Create a new container to for uploading more pictures
curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://127.0.0.1:443/v1/AUTH_test/conference_pictures -k
Fun by example! (cont.)
4) List new container
curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554'
https://127.0.0.1:443/v1/AUTH_test -k
5) Haze the intern by telling them to back up the container. Make sure to point
out how critical the data is. Do not ruin the fun by letting them know you backed
it up properly already (using the Gluster volume already mounted on their
machine)
sudo rm -rf /mnt/ufo/halloween_pix/*
Thanks!
eco@redhat.com
www.gluster.org
Come chat with us at #gluster on freenode IRC
Joe Julians' HTML UFO Demo
https://github.com/joejulian/ufopilot

More Related Content

PDF
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
PDF
Gluster as Block Store in Containers
PDF
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
ODP
Gluster intro-tdose
ODP
Developing apps and_integrating_with_gluster_fs_-_libgfapi
ODP
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
PDF
Gluster intro-tdose
ODP
Introduction to highly_availablenfs_server_on_scale-out_storage_systems_based...
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster as Block Store in Containers
Deploying pNFS over Distributed File Storage w/ Jiffin Tony Thottan and Niels...
Gluster intro-tdose
Developing apps and_integrating_with_gluster_fs_-_libgfapi
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster intro-tdose
Introduction to highly_availablenfs_server_on_scale-out_storage_systems_based...

What's hot (20)

PDF
Gluster d2
ODP
Gluster technical overview
PDF
Sdc 2012-challenges
PDF
Qemu gluster fs
PDF
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
ODP
Kkeithley ufonfs-gluster summit
ODP
Scale out backups-with_bareos_and_gluster
PDF
Arbiter volumes in gluster
PDF
Hands On Gluster with Jeff Darcy
ODP
GlusterFs Architecture & Roadmap - LinuxCon EU 2013
PDF
State of the_gluster_-_lceu
PDF
Gluster Containerized Storage for Cloud Applications
PDF
Integration of Glusterfs in to commvault simpana
PDF
Challenges with Gluster and Persistent Memory with Dan Lambright
ODP
Red Hat Gluster Storage : GlusterFS
ODP
20160130 Gluster-roadmap
ODP
Gluster d thread_synchronization_using_urcu_lca2016
ODP
GlusterFS Containers
PPTX
Red Hat Gluster Storage, Container Storage and CephFS Plans
PDF
Smb gluster devmar2013
Gluster d2
Gluster technical overview
Sdc 2012-challenges
Qemu gluster fs
OSBConf 2015 | Scale out backups with bareos and gluster by niels de vos
Kkeithley ufonfs-gluster summit
Scale out backups-with_bareos_and_gluster
Arbiter volumes in gluster
Hands On Gluster with Jeff Darcy
GlusterFs Architecture & Roadmap - LinuxCon EU 2013
State of the_gluster_-_lceu
Gluster Containerized Storage for Cloud Applications
Integration of Glusterfs in to commvault simpana
Challenges with Gluster and Persistent Memory with Dan Lambright
Red Hat Gluster Storage : GlusterFS
20160130 Gluster-roadmap
Gluster d thread_synchronization_using_urcu_lca2016
GlusterFS Containers
Red Hat Gluster Storage, Container Storage and CephFS Plans
Smb gluster devmar2013
Ad

Viewers also liked (19)

PDF
On demand file-caching_-_gustavo_brand
ODP
Sdc challenges-2012
PDF
Gluster wireshark niels_de_vos
ODP
Lcna tutorial-2012
PDF
Gluster for sysadmins
PDF
Disperse xlator ramon_datalab
ODP
Leases and-caching final
ODP
20160401 Gluster-roadmap
ODP
YDAL Barcelona
ODP
Lcna example-2012
ODP
Tiering barcelona
ODP
Join the super_colony_-_feb2013
ODP
Bug triage in_gluster
ODP
Gdeploy 2.0
PDF
Debugging with-wireshark-niels-de-vos
ODP
Gsummit apis-2013
ODP
Dedupe nmamit
ODP
Gluster fs hadoop_fifth-elephant
ODP
Introduction to Open Source
On demand file-caching_-_gustavo_brand
Sdc challenges-2012
Gluster wireshark niels_de_vos
Lcna tutorial-2012
Gluster for sysadmins
Disperse xlator ramon_datalab
Leases and-caching final
20160401 Gluster-roadmap
YDAL Barcelona
Lcna example-2012
Tiering barcelona
Join the super_colony_-_feb2013
Bug triage in_gluster
Gdeploy 2.0
Debugging with-wireshark-niels-de-vos
Gsummit apis-2013
Dedupe nmamit
Gluster fs hadoop_fifth-elephant
Introduction to Open Source
Ad

Similar to Accessing gluster ufo_-_eco_willson (20)

PDF
はじめてのGlusterFS
PDF
OSBConf 2015 | Using aws virtual tape library as storage for bacula bareos by...
PDF
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
PDF
Gluster Contenarized Storage for Cloud Applications
PDF
One-Man Ops
PDF
Building an HPC Cluster in 10 Minutes
PDF
GlusterFS As an Object Storage
PPTX
Couch to OpenStack: Nova - July, 30, 2013
PDF
PostgreSQL : Introduction
PPTX
Introduction To Apache Mesos
KEY
OpenStack APIs: Present and Future (Beta Talk)
PPTX
Cloud present, future and trajectory (Amazon Web Services) - JIsc Digifest 2016
PDF
Null Bachaav - May 07 Attack Monitoring workshop.
PPTX
Reusable, composable, battle-tested Terraform modules
PDF
Containarized Gluster Storage in Kubernetes
PDF
Docker and Kubernetes 101 workshop
PDF
Aeon mike guide transparent ssl filtering
PDF
Aeon mike guide transparent ssl filtering (1)
PDF
Create a Varnish cluster in Kubernetes for Drupal caching - DrupalCon North A...
PDF
Control Plane: Continuous Kubernetes Security (DevSecOps - London Gathering, ...
はじめてのGlusterFS
OSBConf 2015 | Using aws virtual tape library as storage for bacula bareos by...
AWS Study Group - Chapter 03 - Elasticity and Scalability Concepts [Solution ...
Gluster Contenarized Storage for Cloud Applications
One-Man Ops
Building an HPC Cluster in 10 Minutes
GlusterFS As an Object Storage
Couch to OpenStack: Nova - July, 30, 2013
PostgreSQL : Introduction
Introduction To Apache Mesos
OpenStack APIs: Present and Future (Beta Talk)
Cloud present, future and trajectory (Amazon Web Services) - JIsc Digifest 2016
Null Bachaav - May 07 Attack Monitoring workshop.
Reusable, composable, battle-tested Terraform modules
Containarized Gluster Storage in Kubernetes
Docker and Kubernetes 101 workshop
Aeon mike guide transparent ssl filtering
Aeon mike guide transparent ssl filtering (1)
Create a Varnish cluster in Kubernetes for Drupal caching - DrupalCon North A...
Control Plane: Continuous Kubernetes Security (DevSecOps - London Gathering, ...

More from Gluster.org (20)

PDF
Automating Gluster @ Facebook - Shreyas Siravara
PDF
nfusr: a new userspace NFS client based on libnfs - Shreyas Siravara
PDF
Facebook’s upstream approach to GlusterFS - David Hasson
PDF
Throttling Traffic at Facebook Scale
PDF
GlusterFS w/ Tiered XFS
PDF
Gluster Metrics: why they are crucial for running stable deployments of all s...
PDF
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
PDF
Data Reduction for Gluster with VDO
PDF
Releases: What are contributors responsible for
PDF
RIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
PDF
Gluster and Kubernetes
PDF
Native Clients, more the merrier with GFProxy!
PDF
Gluster: a SWOT Analysis
PDF
GlusterD-2.0: What's Happening? - Kaushal Madappa
PDF
Scalability and Performance of CNS 3.6
PDF
What Makes Us Fail
PDF
Gluster as Native Storage for Containers - past, present and future
PDF
Heketi Functionality into Glusterd2
PDF
Architecture of the High Availability Solution for Ganesha and Samba with Kal...
PDF
Sharding: Past, Present and Future with Krutika Dhananjay
Automating Gluster @ Facebook - Shreyas Siravara
nfusr: a new userspace NFS client based on libnfs - Shreyas Siravara
Facebook’s upstream approach to GlusterFS - David Hasson
Throttling Traffic at Facebook Scale
GlusterFS w/ Tiered XFS
Gluster Metrics: why they are crucial for running stable deployments of all s...
Up and Running with Glusto & Glusto-Tests in 5 Minutes (or less)
Data Reduction for Gluster with VDO
Releases: What are contributors responsible for
RIO Distribution: Reconstructing the onion - Shyamsundar Ranganathan
Gluster and Kubernetes
Native Clients, more the merrier with GFProxy!
Gluster: a SWOT Analysis
GlusterD-2.0: What's Happening? - Kaushal Madappa
Scalability and Performance of CNS 3.6
What Makes Us Fail
Gluster as Native Storage for Containers - past, present and future
Heketi Functionality into Glusterd2
Architecture of the High Availability Solution for Ganesha and Samba with Kal...
Sharding: Past, Present and Future with Krutika Dhananjay

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PDF
Modernizing your data center with Dell and AMD
PPTX
Cloud computing and distributed systems.
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Electronic commerce courselecture one. Pdf
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Modernizing your data center with Dell and AMD
Cloud computing and distributed systems.
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Diabetes mellitus diagnosis method based random forest with bat algorithm
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
GamePlan Trading System Review: Professional Trader's Honest Take
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...

Accessing gluster ufo_-_eco_willson

  • 1. Introduction to accessing Gluster volumes Eco Willson Gluster Communities
  • 2. A bit about me Systems administration and DevOps background. Joined Gluster in September of 2010 Current role is a technical liaison to GlusterFS upstream via the Open Source and Standards organization (OSAS) within Red Hat.
  • 3. Fun by example! (cont.) 6) Upload a new picture curl -v -X PUT -T CoolLinuxConfPic.jpg -H 'X-Auth-Token: AUTH_tk3b615e3c5ada4e06b2354ed10a129ecb' -k https://127.0.0.1:443/v1/AUTH_test/conference_pictures/pic8675309.jpg 7) Tag new picture with metadata curl -v -X POST -H 'X-Auth-Token: AUTH_tk3b615e3c5ada4e06b2354ed10a129ecb' -k https://127.0.0.1:443/v1/AUTH_test/conference_pictures -H 'X-Container- Meta-Demo-Venue: LinuxCon EU 2012' -H 'X-Container-Meta-Creator: Eco' -H 'X- Container-Meta-Creator-Taskmaster: John Mark Walker' 8) Ask the intern to verify the backups worked correctly since you need to step out and the boss will ask while you are away
  • 4. Overview of Gluster philosphy Your data should be yours, always We enable a framework of methods to allow data access any way that suits you This includes * Traditional filesystem mounts * Mount via NFS or CIFS * Access via REST using our Unified File and Object (UFO) feature * xlator framework for times when you need data to work better for the particular needs of your environment or application
  • 5. Accessing using traditional filesystem mounts Requires the Gluster packages to be installed on the client Including _netdev option in fstab will help avoid accidentally filling up / partition It is recommended that your mount points are clearly separate from your export folders on the Gluster servers Consider the confusion that can occur if you have the brick mounted on /mnt/export/gluster, and the client mount on /mnt/gluster...
  • 6. Accessing via NFS/CIFS Gluster has it's own NFS server inline. Due to this, it is not recommended to run native NFS on the Gluster servers No additional Gluster packages need to be installed, although you may need to add additional packages (e.g. nfs-common in ubuntu or rpcbind) Many distributions use NFS by default now. Due to this, use the -o vers=3 option when mounting Include the _netdev option in fstab as you would with regular NFS Don't forget that automatic failover does not occur when not using the Gluster native client (but can still be achieved via carp or CTDB)
  • 7. Accessing via Unified File and Object Additional setup is required vs the standard Gluster setup See Kalebs' post on Gluster.org: http://www.gluster.org/2012/09/howto-using-ufo-swift-a-quick-and-dirty-setup- guide/ Allows simultaneous access to your data from both developers and data consumers (users and applications)
  • 8. Why use UFO on Gluster? No 5GB limit on transfer size Takes advantage of the Gluster features you have already set up in your volume (e.g., replication, automatic fail over and self-heal) Global access to the same data, using the same namespace, at the same time Ease of use and management versus other clustering solutions
  • 9. How does simultaneous access help me? By being able to access the same data via both the REST API and traditional file system access methods, you can work on the same data via the method you choose, and using multiple methods, simultaneously, on the same data. This allows you to use the newer cloud based storage without having to sacrifice functionality for older programs that may be dependent on direct access to the filesystem, for example, using anti-virus scanners on uploaded files. This also means the changes I make via the filesystem, or via UFO, are being done against the same exact object.
  • 10. What do I need to test UFO with GlusterFS? At least two nodes with Gluster installed already. For testing, virtual machines are fine. Some knowledge of the REST API or cURL to be able to address the Gluster volume and files within it
  • 11. What do I need to test UFO with GlusterFS? At least two nodes with Gluster installed already. For testing, virtual machines are fine. Some knowledge of the REST API or cURL to be able to address the Gluster volume and files within it
  • 12. Common Commands Create an authentication token curl -v -H 'X-Storage-User: gv0:admin' -H 'X-Storage-Pass:admin' -k https://127.0.0.1:443/auth/v1.0/ Create a new container curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/pictures -k Display existing containers curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test -k
  • 13. Common Commands Create a new object in a container curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/pictures/dog -H 'Content- Length: 0' -k List all objects in a container curl -v -X GET-H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/images -k
  • 14. Common Commands Delete a container curl -v -X DELETE -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/pictures/dog -H 'Content- Length: 0' -k Delete an object in a container curl -v -X DELETE -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://example.storage.com:443/v1/AUTH_test/ pictures/cat -k
  • 15. Some things to remember for Gluster with SWIFT When we reference “account”, we are referring to the gluster volume When adding users, the second field is where you specify the Gluster volume. In the following string: user_test_tester = testing .admin Replace “test” with the Gluster volume A container lives within a Gluster volume, and can be thought of as a logically separated space to execute commands The “Container Server” handles listing objects The “Account Server” handles listing the Gluster volumes (remember 'accounts' from above)
  • 16. Fun by example! 1) Get an auth token: curl -v -H 'X-Storage-User: ufo:test' -H 'X-Storage-Pass: test' -k https://127.0.0.1:443/auth/v1.0 2) List containers in a Gluster volume named “test” curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://127.0.0.1:443/v1/AUTH_test -k 3) Create a new container to for uploading more pictures curl -v -X PUT -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://127.0.0.1:443/v1/AUTH_test/conference_pictures -k
  • 17. Fun by example! (cont.) 4) List new container curl -v -X GET -H 'X-Auth-Token: AUTH_tkde3ad38b087b49bbbac0494f7600a554' https://127.0.0.1:443/v1/AUTH_test -k 5) Haze the intern by telling them to back up the container. Make sure to point out how critical the data is. Do not ruin the fun by letting them know you backed it up properly already (using the Gluster volume already mounted on their machine) sudo rm -rf /mnt/ufo/halloween_pix/*
  • 18. Thanks! eco@redhat.com www.gluster.org Come chat with us at #gluster on freenode IRC Joe Julians' HTML UFO Demo https://github.com/joejulian/ufopilot