18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 include ../../../make-rules/shared-macros.mk |
26 include ../../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= cinder |
28 COMPONENT_NAME= cinder |
29 COMPONENT_CODENAME= juno |
29 COMPONENT_CODENAME= kilo |
30 COMPONENT_VERSION= 2014.2.2 |
30 COMPONENT_VERSION= 2015.1.2 |
31 COMPONENT_BE_VERSION= 2014.2 |
31 COMPONENT_BE_VERSION= 2015.1 |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
34 COMPONENT_ARCHIVE_HASH= \ |
34 COMPONENT_ARCHIVE_HASH= \ |
35 sha256:2c779bf9d208163af6c425da9043bbdcb345cebc5c118198482b94062862a117 |
35 sha256:8baa42a3008b0bb0870df678237c0d06ab8ee148b3bf5c00c6b95cfe05c52333 |
36 COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE) |
36 COMPONENT_ARCHIVE_URL= http://launchpad.net/$(COMPONENT_NAME)/$(COMPONENT_CODENAME)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE) |
37 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc |
37 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc |
38 COMPONENT_PROJECT_URL= http://www.openstack.org/ |
38 COMPONENT_PROJECT_URL= http://www.openstack.org/ |
39 COMPONENT_BUGDB= service/cinder |
39 COMPONENT_BUGDB= service/cinder |
40 IPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION) |
40 IPS_COMPONENT_VERSION= 0.$(COMPONENT_VERSION) |
41 |
41 |
42 TPNO= 21819 |
42 TPNO= 25784 |
43 |
43 |
44 include $(WS_MAKE_RULES)/prep.mk |
44 include $(WS_MAKE_RULES)/prep.mk |
45 include $(WS_MAKE_RULES)/setup.py.mk |
45 include $(WS_MAKE_RULES)/setup.py.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
46 include $(WS_MAKE_RULES)/ips.mk |
47 |
47 |
53 |
53 |
54 PKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION) |
54 PKG_MACROS += COMPONENT_BE_VERSION=$(COMPONENT_BE_VERSION) |
55 PKG_MACROS += PYVER=$(PYTHON_VERSIONS) |
55 PKG_MACROS += PYVER=$(PYTHON_VERSIONS) |
56 PKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .) |
56 PKG_MACROS += PYV=$(shell echo $(PYTHON_VERSIONS) | tr -d .) |
57 |
57 |
|
58 COMPONENT_POST_UNPACK_ACTION += \ |
|
59 $(MKDIR) $(SOURCE_DIR)/cinder/volume/drivers/zfssa; \ |
|
60 $(CP) files/zfssa/zfssaiscsi.py \ |
|
61 $(SOURCE_DIR)/cinder/volume/drivers/zfssa |
|
62 |
58 # |
63 # |
59 # cinder-api, cinder-backup, cinder-scrubber, and cinder-volume depend |
64 # cinder-api, cinder-backup, cinder-scrubber, and cinder-volume depend |
60 # on cinder-db, and cinder-upgrade so copy all of the service |
65 # on cinder-db, and cinder-upgrade so copy all of the service |
61 # manifests into the proto directory for pkgdepend(1) to find. |
66 # manifests into the proto directory for pkgdepend(1) to find. |
62 # |
67 # |
63 COMPONENT_POST_INSTALL_ACTION += \ |
68 COMPONENT_POST_INSTALL_ACTION += \ |
64 ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
69 ($(MKDIR) $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
65 $(CP) \ |
70 $(CP) \ |
66 files/cinder-api.xml \ |
71 files/cinder-api.xml \ |
67 files/cinder-backup.xml \ |
72 files/cinder-backup.xml \ |
68 files/cinder-db.xml \ |
73 files/cinder-db.xml \ |
69 files/cinder-scheduler.xml \ |
74 files/cinder-scheduler.xml \ |
70 files/cinder-upgrade.xml \ |
75 files/cinder-upgrade.xml \ |
71 files/cinder-volume.xml \ |
76 files/cinder-volume.xml \ |
72 $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
77 $(PROTO_DIR)/lib/svc/manifest/application/openstack; \ |
73 $(CP) \ |
78 $(CP) \ |
74 files/solaris/solarisfc.py \ |
79 files/solaris/solarisfc.py \ |
75 files/solaris/solarisiscsi.py \ |
80 files/solaris/solarisiscsi.py \ |
76 $(PROTO_DIR)$(PYTHON_LIB)/cinder/brick/initiator; \ |
81 $(PROTO_DIR)$(PYTHON_LIB)/cinder/brick/initiator; \ |
77 $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \ |
82 $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \ |
78 $(TOUCH) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris/__init__.py; \ |
83 $(TOUCH) \ |
79 $(CP) files/solaris/zfs.py $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \ |
84 $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris/__init__.py; \ |
80 $(MKDIR) $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/zfssa; \ |
85 $(CP) \ |
81 $(CP) files/zfssa/cinder.akwf $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/zfssa); \ |
86 files/solaris/nfs.py \ |
82 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
87 files/solaris/zfs.py \ |
|
88 $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/solaris; \ |
|
89 $(CP) files/zfssa/cinder.akwf \ |
|
90 $(PROTO_DIR)$(PYTHON_LIB)/cinder/volume/drivers/zfssa); \ |
|
91 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES) |
83 |
92 |
84 # common targets |
93 # common targets |
85 build: $(BUILD_NO_ARCH) |
94 build: $(BUILD_NO_ARCH) |
86 |
95 |
87 install: $(INSTALL_NO_ARCH) |
96 install: $(INSTALL_NO_ARCH) |
90 |
99 |
91 system-test: $(NO_TESTS) |
100 system-test: $(NO_TESTS) |
92 |
101 |
93 |
102 |
94 REQUIRED_PACKAGES += cloud/openstack/openstack-common |
103 REQUIRED_PACKAGES += cloud/openstack/openstack-common |
|
104 REQUIRED_PACKAGES += file/gnu-coreutils |
95 REQUIRED_PACKAGES += library/python/eventlet-27 |
105 REQUIRED_PACKAGES += library/python/eventlet-27 |
96 REQUIRED_PACKAGES += library/python/iniparse-27 |
106 REQUIRED_PACKAGES += library/python/iniparse-27 |
97 REQUIRED_PACKAGES += library/python/ipython-27 |
107 REQUIRED_PACKAGES += library/python/ipython-27 |
98 REQUIRED_PACKAGES += library/python/oslo.config-27 |
108 REQUIRED_PACKAGES += library/python/oslo.config-27 |
99 REQUIRED_PACKAGES += library/python/python-mysql-27 |
109 REQUIRED_PACKAGES += library/python/oslo.utils-27 |
100 REQUIRED_PACKAGES += library/python/sqlalchemy-27 |
110 REQUIRED_PACKAGES += library/python/sqlalchemy-27 |
101 REQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27 |
111 REQUIRED_PACKAGES += library/python/sqlalchemy-migrate-27 |
102 REQUIRED_PACKAGES += system/core-os |
112 REQUIRED_PACKAGES += system/core-os |
103 REQUIRED_PACKAGES += system/file-system/zfs |
113 REQUIRED_PACKAGES += system/file-system/zfs |
104 REQUIRED_PACKAGES += system/storage/fc-utilities |
114 REQUIRED_PACKAGES += system/storage/fc-utilities |