Skip to content

Commit d004f7a

Browse files
authored
Merge branch 'master' into test-feature1/test1
2 parents ce67d5f + 3352921 commit d004f7a

File tree

2,161 files changed

+77929
-15399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,161 files changed

+77929
-15399
lines changed

.gitconfig/hooks/commit-msg

+13-4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ class bcolors:
4141
WARNS = 0
4242
REPO_NAME =""
4343

44+
45+
# default open function(python3)
46+
open = open
47+
# using python2 codecs.open func if python version is 2
48+
if sys.version_info.major == 2:
49+
import codecs
50+
open = codecs.open
51+
52+
4453
def main():
4554
try:
4655
if not check_commit_msg_enabled():
@@ -61,7 +70,7 @@ def backup_and_exit(file_path):
6170

6271
lines = []
6372
useful = ["\n\n"]
64-
with open(file_path, 'r') as f:
73+
with open(file_path, 'r', encoding='utf8') as f:
6574
lines = f.readlines()
6675
for l in lines:
6776
if l.startswith("# Please enter the commit") or \
@@ -87,7 +96,7 @@ def fix_commit_msg(file_path):
8796
# see: https://superuser.com/questions/1367811/sometimes-git-includes-the-diff-to-commit-message-when-using-verbose
8897

8998
fixed_commit_msg = []
90-
with open(file_path, 'r') as f:
99+
with open(file_path, 'r', encoding='utf8') as f:
91100
lines = f.readlines()
92101
for no, line in enumerate(lines):
93102
if "# Everything below it will be ignored." in line.strip() or \
@@ -96,7 +105,7 @@ def fix_commit_msg(file_path):
96105
break
97106
if len(fixed_commit_msg) == 0:
98107
return
99-
with open(file_path, 'w') as f:
108+
with open(file_path, 'w', encoding='utf8') as f:
100109
f.writelines(fixed_commit_msg)
101110

102111

@@ -124,7 +133,7 @@ def check_commit_msg(file_path):
124133

125134
jira_patterns = [r"\bZSTAC-\d+\b", r"\bZSTACK-\d+\b", r"\bMINI-\d+\b",
126135
r"\bZOPS-\d+\b", r"\bZHCI-\d+\b"]
127-
with open(file_path, 'r') as f:
136+
with open(file_path, 'r', encoding='utf8') as f:
128137
lines = f.readlines()
129138
full_lines = len(lines)
130139

.gitconfig/hooks/prepare-commit-msg

+14-3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ import traceback
3131
from collections import Counter
3232

3333

34+
# default open function(python3)
35+
open = open
36+
# using python2 codecs.open func if python version is 2
37+
if sys.version_info.major == 2:
38+
import codecs
39+
open = codecs.open
40+
3441
def main():
3542
try:
3643
if not auto_commit_msg_enabled():
@@ -73,7 +80,7 @@ def write_commit_msg(commit_msg_filepath, type, scope, tags, jiras):
7380
# 3. Are there any side effects?\n
7481
'''
7582

76-
with open(commit_msg_filepath, 'r+') as msg:
83+
with open(commit_msg_filepath, 'r+', encoding='utf8') as msg:
7784
in_usable_content = False
7885
useable_contents = []
7986
for line in msg.readlines():
@@ -102,7 +109,7 @@ def write_commit_msg(commit_msg_filepath, type, scope, tags, jiras):
102109

103110
real_commit_msg.append("\nChange-Id: %s\n" % get_change_id())
104111

105-
with open(commit_msg_filepath, 'w') as msg:
112+
with open(commit_msg_filepath, 'w', encoding='utf8') as msg:
106113
real_commit_msg.extend(useable_contents)
107114
msg.writelines(real_commit_msg)
108115

@@ -118,7 +125,7 @@ def process_metadata(commit_msg_filepath):
118125

119126
changed_folders = []
120127
changed_paths = {}
121-
with open(commit_msg_filepath, 'r+') as msg:
128+
with open(commit_msg_filepath, 'r+', encoding='utf8') as msg:
122129
content = msg.readlines()
123130
for no, line in enumerate(content):
124131
line = line.strip()
@@ -222,6 +229,10 @@ def get_scope(changed_folders, changed_paths):
222229
break
223230
if not found_magic:
224231
scopes.append("conf")
232+
elif "pom.xml" in p:
233+
# eg. header/pom.xml
234+
# eg. pom.xml
235+
scopes.append("dependencies")
225236

226237
scope_counter = Counter(scopes)
227238
most_common = scope_counter.most_common(1)[0][0]

README.md

+44-37
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ Installation and upgrade are as simple as deploying a **Java WAR file**. A POC e
8888
a bootstrap script; A multi-node production environment can be deployed in **30 minutes** including the time you read the
8989
documentation.
9090

91-
>> [root@localhost ~]# curl http://download.zstack.org/install.sh | bash -s -- -a
91+
Quick access:
92+
93+
* [Product download page(CN)](https://www.zstack.io/product/product_downloads/)
94+
* [Product download page(EN)](https://www.zstack-cloud.com/product/product_downloads/)
9295

9396
#### Full automation
9497

@@ -110,101 +113,105 @@ that adding or removing features will not impact the core orchestration, promisi
110113
Installation of ZStack is super easy; users can choose different methods depending on their needs to install the first
111114
ZStack environment:
112115

113-
* For users wanting to try out quickly, see [Quick Installation](http://en.zstack.io/installation/index.html).
116+
* For users wanting to try out quickly, see [Quick Installation](https://www.zstack-cloud.com/help/en/tutorials/quick_install_guide/v4/).
114117

115-
* For users wanting to deploy a production environment, see [Manual Installation](http://en.zstack.io/installation/manual.html).
118+
* For users wanting to deploy a production environment, see [Manual Installation](http://zstack.org/installation/manual.html).
116119

117-
* For users wanting to deploy a multi-node environment, see [Multi-node Installation](http://en.zstack.io/installation/multi-node.html).
120+
* For users wanting to deploy a multi-node environment, see [Multi-node Installation](https://www.zstack-cloud.com/help/en/tutorials/double_mn_ha_solution/v4/).
118121

119122
Once the installation is done, users can follow one of getting started guides:
120123

121-
* [Getting Started With Quick Installation](http://en.zstack.io/documentation/getstart-quick.html).
124+
* [Getting Started With Quick Installation](https://www.zstack-cloud.com/help/en/tutorials/quick_install_guide/v4/3.html).
122125

123-
* [Getting Started With Manual Installation](http://en.zstack.io/documentation/getstart-manual.html).
126+
* [Getting Started With Manual Installation](http://zstack.org/documentation/getstart-manual.html).
124127

125-
* [Getting Started With Multi-node Installation](http://en.zstack.io/documentation/getstart-multi.html).
128+
* [Getting Started With Multi-node Installation](https://www.zstack-cloud.com/help/en/tutorials/double_mn_ha_solution/v4/2.html).
126129

127130
## Tutorials
128131

129132
Six tutorials are prepared for your first journey in ZStack, building classic cloud deployments all on one single Linux machine:
130133

131-
##### Amazon EC2 classic EIP zone:
134+
##### Elastic IP:
132135

133-
* [Web UI](http://en.zstack.io/tutorials/ec2-ui.html)
134-
* [Command Line Tool](http://en.zstack.io/tutorials/ec2-cli.html)
136+
* [Web UI](https://www.zstack-cloud.com/help/en/tutorials/vpc_tutorial/v4/3.html#chapter-3-7-Elastic-IP)
137+
* [Command Line Tool](http://zstack.org/tutorials/ec2-cli.html)
135138

136139
##### Flat Network:
137140

138-
* [Web UI](http://en.zstack.io/tutorials/flat-network-ui.html)
139-
* [Command Line Tool](http://en.zstack.io/tutorials/flat-network-cli.html)
141+
* [Web UI](https://www.zstack-cloud.com/help/en/tutorials/flat_tutorial/v4/)
142+
* [Command Line Tool](http://zstack.org/tutorials/flat-network-cli.html)
140143

141144
##### Three Tiered Network:
142145

143-
* [Web UI](http://en.zstack.io/tutorials/three-tiered-ui.html)
144-
* [Command Line Tool](http://en.zstack.io/tutorials/three-tiered-cli.html)
146+
* [Web UI](http://zstack.org/tutorials/three-tiered-ui.html)
147+
* [Command Line Tool](http://zstack.org/tutorials/three-tiered-cli.html)
145148

146149
##### Security Group:
147150

148-
* [Web UI](http://en.zstack.io/tutorials/security-group-ui.html)
149-
* [Command Line Tool](http://en.zstack.io/tutorials/security-group-cli.html)
151+
* [Web UI](https://www.zstack-cloud.com/help/en/tutorials/vpc_tutorial/v4/3.html#chapter-3-6-Security-Group)
152+
* [Command Line Tool](http://zstack.org/tutorials/security-group-cli.html)
150153

151-
##### Elastic Port Forwarding:
154+
##### Port Forwarding:
152155

153-
* [Web UI](http://en.zstack.io/tutorials/elastic-port-forwarding-ui.html)
154-
* [Command Line Tool](http://en.zstack.io/tutorials/elastic-port-forwarding-cli.html)
156+
* [Web UI](https://www.zstack-cloud.com/help/en/tutorials/vpc_tutorial/v4/3.html#chapter-3-8-Port-Forwarding)
157+
* [Command Line Tool](http://zstack.org/tutorials/elastic-port-forwarding-cli.html)
155158

156159
##### Snapshots:
157160

158-
* [Web UI](http://en.zstack.io/tutorials/snapshot-ui.html)
159-
* [Command Line Tool](http://en.zstack.io/tutorials/snapshot-cli.html)
161+
* [Web UI](https://www-zstack-io.translate.goog/help/tutorials/volume_snapshot_tutorial/v4/1.html?_x_tr_sl=zh-CN&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp)
162+
* [Command Line Tool](http://zstack.org/tutorials/snapshot-cli.html)
160163

161164
## Under the hood
162165

163166
Under the hood, ZStack is built on an architecture explained by following articles:
164167

165168
##### Scalability:
166169

167-
[ZStack's Scalability Secrets Part 1: Asynchronous Architecture](http://en.zstack.io/blog/asynchronous-architecture.html)
170+
[ZStack's Scalability Secrets Part 1: Asynchronous Architecture](http://zstack.org/blog/asynchronous-architecture.html)
168171

169-
[ZStack's Scalability Secrets Part 2: Stateless Services](http://en.zstack.io/blog/stateless-clustering.html)
172+
[ZStack's Scalability Secrets Part 2: Stateless Services](http://zstack.org/blog/stateless-clustering.html)
170173

171-
[ZStack's Scalability Secrets Part 3: Lock-free Architecture](http://en.zstack.io/blog/lock-free.html)
174+
[ZStack's Scalability Secrets Part 3: Lock-free Architecture](http://zstack.org/blog/lock-free.html)
172175

173176
##### Plugin Architecture:
174177

175-
[The In-Process Microservices Architecture](http://en.zstack.io/blog/microservices.html)
178+
[The In-Process Microservices Architecture](http://zstack.org/blog/microservices.html)
176179

177-
[The Versatile Plugin System](http://en.zstack.io/blog/plugin.html)
180+
[The Versatile Plugin System](http://zstack.org/blog/plugin.html)
178181

179-
[The Tag System](http://en.zstack.io/blog/tag.html)
182+
[The Tag System](http://zstack.org/blog/tag.html)
180183

181-
[The Workflow Engine](http://en.zstack.io/blog/workflow.html)
184+
[The Workflow Engine](http://zstack.org/blog/workflow.html)
182185

183-
[The Cascade Framework](http://en.zstack.io/blog/cascade.html)
186+
[The Cascade Framework](http://zstack.org/blog/cascade.html)
184187

185188
##### Query API:
186189

187-
[The Query API](http://en.zstack.io/blog/query.html)
190+
[The Query API](http://zstack.org/blog/query.html)
188191

189192
##### Automation:
190193

191-
[Full Automation By Ansible](http://en.zstack.io/blog/ansible.html)
194+
[Full Automation By Ansible](http://zstack.org/blog/ansible.html)
192195

193196
##### Storage And Network:
194197

195-
[Networking Model 1: L2 and L3 Network](http://en.zstack.io/blog/network-l2.html)
198+
[Networking Model 1: L2 and L3 Network](http://zstack.org/blog/network-l2.html)
196199

197-
[Networking Model 2: Virtual Router Network Service Provider](http://en.zstack.io/blog/virtual-router.html)
200+
[Networking Model 2: Virtual Router Network Service Provider](http://zstack.org/blog/virtual-router.html)
198201

199-
[Storage Model: Primary Storage and Backup Storage](http://en.zstack.io/blog/storage.html)
202+
[Storage Model: Primary Storage and Backup Storage](http://zstack.org/blog/storage.html)
200203

201204
##### Testing:
202205

203-
[The Automation Testing System 1: Integration Testing](http://en.zstack.io/blog/integration-testing.html)
206+
[The Automation Testing System 1: Integration Testing](http://zstack.org/blog/integration-testing.html)
207+
208+
[The Automation Testing System 2: System Testing](http://zstack.org/blog/system-testing.html)
209+
210+
[The Automation Testing System 3: Model-based Testing](http://zstack.org/blog/model-based-testing.html)
204211

205-
[The Automation Testing System 2: System Testing](http://en.zstack.io/blog/system-testing.html)
212+
## More Documentation Resources
206213

207-
[The Automation Testing System 3: Model-based Testing](http://en.zstack.io/blog/model-based-testing.html)
214+
[ZStack documentation](https://www.zstack-cloud.com/help/en/product_manuals/index.html)
208215

209216
## License
210217

VERSION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
MAJOR=4
2-
MINOR=4
3-
UPDATE=24
2+
MINOR=6
3+
UPDATE=31

0 commit comments

Comments
 (0)