CN110795108B - Method for deploying Weblogic application based on Ansible layout - Google Patents

Method for deploying Weblogic application based on Ansible layout Download PDF

Info

Publication number
CN110795108B
CN110795108B CN201910879692.4A CN201910879692A CN110795108B CN 110795108 B CN110795108 B CN 110795108B CN 201910879692 A CN201910879692 A CN 201910879692A CN 110795108 B CN110795108 B CN 110795108B
Authority
CN
China
Prior art keywords
weblogic
application
deployment
service
package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910879692.4A
Other languages
Chinese (zh)
Other versions
CN110795108A (en
Inventor
王纪军
滕爱国
戚林成
王鹏飞
陶晔波
程伟华
刘小磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Jiangsu Electric Power Co Ltd
Jiangsu Electric Power Information Technology Co Ltd
Information and Telecommunication Branch of State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Jiangsu Electric Power Co Ltd, Jiangsu Electric Power Information Technology Co Ltd, Information and Telecommunication Branch of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Jiangsu Electric Power Co Ltd
Priority to CN201910879692.4A priority Critical patent/CN110795108B/en
Publication of CN110795108A publication Critical patent/CN110795108A/en
Application granted granted Critical
Publication of CN110795108B publication Critical patent/CN110795108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention discloses a method for deploying Weblogic application based on infrastructure arrangement, which realizes automatic and standardized deployment of Weblogic application service on a server through an automatic operation and maintenance platform model; the automatic operation and maintenance platform model comprises: creating virtual resources, constructing a deployment environment and automatically deploying Weblogic application; the technology is based on virtualized computing resources, uses internal modules rich in alarm, and carries out ordered specific arrangement, so that a client does not need to be installed manually, and the Weblogic application service is automatically and standardizedly deployed on a server by operating the server in batches and executing the programmed specific playbook script. The method solves the relevant problems that the Weblogic application is long in time consumption, complex in process, high in labor cost and the like in manual deployment.

Description

Method for deploying Weblogic application based on Ansible layout
Technical Field
The invention relates to a virtualization platform, in particular to a method for deploying Weblogic application based on Ansible programming.
Background
The traditional operation and maintenance defects are various, the system has large heterogeneity, an efficient operation and maintenance flow is lacked, deployment is initiated manually, operation and maintenance personnel are passive and inefficient, and with the continuous development of the information era, manual deployment is gradually replaced by automatic operation and maintenance, and the automatic operation and maintenance becomes an important component in IT service. In the face of more and more complex business scenes and more diversified user requirements, continuously expanded service applications need more and more reasonable modes to ensure the flexibility, convenience, safety and stability of application service deployment, and the automation operation and maintenance mode for deploying the Weblogic application based on the infrastructure arrangement is exploration and application meeting enterprise-level automation operation and maintenance requirements.
The infrastructure is a new automatic operation and maintenance tool, is developed based on Python, integrates the advantages of a plurality of operation and maintenance tools (puppet, chef, func and fabric), and realizes functions of batch system configuration, batch program deployment, batch operation commands and the like. Through the characteristics of simple and efficient Ansible automation tool, flexible configuration management and the like, rich built-in modules are effectively and reasonably arranged and secondarily developed, so that the Ansible automation tool can perfectly meet the requirements of enterprise-level automation operation and maintenance.
Disclosure of Invention
In order to solve the problems of long time consumption, complex process, high labor cost and the like of the Weblogic application manual deployment, the invention aims to provide a method for deploying the Weblogic application based on the Angle arrangement, and the Weblogic application service is automatically and standardly deployed on a server through an automatic operation and maintenance platform model.
The purpose of the invention is realized by the following technical scheme:
a method for deploying Weblogic application based on secure layout is characterized in that: the Weblogic application service is automatically and standardly deployed on the server through an automatic operation and maintenance platform model; the automatic operation and maintenance platform model comprises: virtual resource creation, deployment environment construction and Weblogic application automatic deployment;
virtual resource creation, which represents application of cloud platform technology. The technical application represents the effective allocation and use of resources on the server, such as the use of vmware and opencast virtualization platforms. The virtual resource creation is divided into two steps: the method comprises the steps of cloud platform virtualization and virtual machine initialization based on an infrastructure architecture.
1) Virtualization of a cloud platform: the creation of a virtual machine is generally realized through an application of a vmware or openstack virtualization platform and through access to the virtualization platform according to a mirror image template on the virtualization platform.
2) Initializing the virtual machine based on the infrastructure: based on the use of the virtualization platform, after the virtual machine is successfully established, a series of scripts are executed through an alarm editing tool, monitoring information is initialized, and operation system passwords are reset.
Constructing a deployment environment: the module is a preparation step before Weblogic application service is deployed based on infrastructure, and the deployment environment construction module is mainly divided into: the method comprises the following steps of multi-channel downloading of an application service package, middleware environment initialization based on an infrastructure architecture and Weblogic console password reconstruction based on WLST:
1) multi-channel downloading of the application service package: the application component package can be derived from different public file services, corresponding downloading modules are developed for downloading the application package according to different sources, docking of the gitlab service is supported, the http request is called through the interrupt to download the application war package from the gitlab server, and the application war package is downloaded to a fixed path of a target machine for deployment and use.
2) Initializing a middleware environment based on an infrastructure: and when configuring the corresponding middleware deployment environment, automatically selecting the conforming jdk version and Weblogic version from the virtual machine according to the corresponding middleware parameters, and initializing the middleware environment for subsequent deployment.
3) Reconstructing a Weblogic console password based on an AdminAccount tool: for the safety of the application service, a 16-bit complex password is reconstructed, a self-developed modified console password script is executed through an password, and a Weblogic console password is reconstructed
Weblogic application automation deployment: the module utilizes an infrastructure automatic execution application package to automatically deploy in Weblogic after virtual resources are created and a deployment environment is constructed, and monitors whether Weblogic application logs are successfully started or not.
1) The Anisble calls the script to start the console: the method comprises the steps of initializing Weblogic middleware deployment, starting a Weblogic console through an android calling Weblogic script, and monitoring whether the AdminServer is started successfully or not through checking an AdminServer start log.
2) Data source creation based on WLST: and calling a self-researched data source to create a script through an infrastructure shell module, wherein the script is based on a WLST command line tool of Weblogic to configure the data source in the Weblogic.
3) The answer calls the developer application deployment: the Weblogic automatic deployment application package realizes the automatic deployment of the component package on the Weblogic through the executive Weblogic.
4) Starting and monitoring the Server application service: and starting the Weblogic application service, calling a starting script of the Weblogic managed service through the infrastructure to start the Weblogic application, and monitoring the success of service starting according to the starting log of the application.
The method comprises the steps that a Weblogic application program is installed in a virtual machine template in a virtualization platform in advance, and when a Weblogic deployment request is received, a virtual machine is created and started by using the virtual machine template; and executing the pre-programmed playbook through the virtual machine created by the infrastructure connection to perform Weblogic application deployment. The method comprises the steps that firstly, an enterprise downloads a deployment component package from a public file service (such as Gitlab), then data source configuration and application issuing operation are carried out through a Weblogic-deployment tool and a WLST command line tool, and finally issuing of Weblogic application is completed.
The method is based on virtualized computing resources, uses internal modules rich in alarm, and carries out ordered specific arrangement, so that the client does not need to be installed manually, and the Weblogic application service is automatically and standardizedly deployed on the server by operating the server in batches and executing the programmed specific playbook script. The method solves the relevant problems of long time consumption, complex process, high labor cost and the like of Weblogic application manual deployment, and is also the basis and core for realizing enterprise-level large-scale automatic deployment tasks.
Drawings
Fig. 1 is a Weblogic auto-deployment architecture diagram.
Detailed Description
The invention is described in detail below with reference to the figures and specific examples.
A method for deploying Weblogic application based on infrastructure arrangement realizes automatic and standardized deployment of Weblogic application service on a server through an automatic operation and maintenance platform model; the automatic operation and maintenance platform model comprises: virtual resource creation, deployment environment construction and Weblogic application automated deployment.
Virtual resource creation, which represents application of cloud platform technology. The technical application represents the effective allocation and use of resources on the server, such as the use of vmware and opencast virtualization platforms. The virtual resource creation is divided into two steps: the method comprises the steps of cloud platform virtualization and virtual machine initialization based on an infrastructure architecture.
1) Virtualization of a cloud platform: the creation of a virtual machine is generally realized through an application of a vmware or openstack virtualization platform and through access to the virtualization platform according to a mirror image template on the virtualization platform.
2) Initializing the virtual machine based on the infrastructure: based on the use of the virtualization platform, after the virtual machine is successfully established, a series of scripts are executed through an ansable arrangement tool, monitoring information is initialized, and the password of the operating system is reset.
Constructing a deployment environment: the module is a preparation step before Weblogic application service is deployed based on infrastructure, and the deployment environment construction module is mainly divided into: the method comprises the following steps of multi-channel downloading of an application service package, middleware environment initialization based on an infrastructure architecture and Weblogic console password reconstruction based on WLST:
1) multi-channel downloading of the application service package: the application component package can be derived from different public file services, corresponding downloading modules are developed for downloading the application package according to different sources, docking of the gitlab service is supported, the http request is called through the interrupt to download the application war package from the gitlab server, and the application war package is downloaded to a fixed path of a target machine for deployment and use.
2) Initializing a middleware environment based on an infrastructure: and when configuring the corresponding middleware deployment environment, automatically selecting the conforming jdk version and Weblogic version from the virtual machine according to the corresponding middleware parameters, and initializing the middleware environment for subsequent deployment.
3) Reconstructing a Weblogic console password based on an AdminAccount tool: and for the safety of the application service, reconstructing a 16-bit complex password, and reconstructing a Weblogic console password by executing a self-developed modified console password script through the password.
Weblogic application automation deployment: the module utilizes an infrastructure automatic execution application package to automatically deploy in Weblogic after virtual resources are created and a deployment environment is constructed, and monitors whether Weblogic application logs are successfully started or not.
1) The Anisble calls the script to start the console: the method comprises the steps of initializing Weblogic middleware deployment, starting a Weblogic console through an android calling Weblogic script, and monitoring whether the AdminServer is started successfully or not through checking an AdminServer start log.
2) Data source creation based on WLST: and calling a self-researched data source to create a script through an infrastructure shell module, wherein the script is based on a WLST command line tool of Weblogic to configure the data source in the Weblogic.
3) The angioyer application deployment is called by the Angle: the Weblogic automatic deployment application package realizes the automatic deployment of the component package on the Weblogic through the executive Weblogic.
4) Starting and monitoring the Server application service: and starting the Weblogic application service, calling a starting script of the Weblogic hosted service through the android, starting the Weblogic application, and monitoring the success of the service starting according to the starting log of the application.
Fig. 1 shows that after a virtual machine is applied from a cloud platform, an anchor performs initialization operation on the virtual machine, and an application package is downloaded to a target server through a download module. And calling a command line tool of the Weblogic through the alarm to perform operations of password modification, data source configuration, application package deployment and the like of the Weblogic, and analyzing the log to monitor whether Weblogic application is started successfully or not. And automatic deployment of the application packages in the Weblogic is realized.

Claims (2)

1. A method for deploying Weblogic application based on Ansible programming is characterized in that: the Weblogic application service is automatically and standardly deployed on the server through an automatic operation and maintenance platform model; the automatic operation and maintenance platform model comprises: creating virtual resources, constructing a deployment environment and automatically deploying Weblogic application;
creating virtual resources, wherein the virtual resources represent application of cloud platform technology; resources on the server are effectively distributed and used; the virtual resource creation is divided into two steps: virtualization of a cloud platform and initialization of a virtual machine based on an infrastructure architecture;
1) virtualization of a cloud platform: the creation of a virtual machine is realized according to a mirror image template on a virtualization platform through the application of a vmware or openstack virtualization platform and the access of the virtualization platform;
2) initializing the virtual machine based on the infrastructure: based on the use of the virtualization platform, after the virtual machine is successfully established, a series of scripts are executed through an Ansible editing tool, monitoring information is initialized, and password operation of an operating system is reset;
constructing a deployment environment: the method is a preparation step before Weblogic application service is deployed based on infrastructure, and a deployment environment construction module is mainly divided into: the method comprises the steps of multi-channel downloading of an application service package, initialization of a middleware environment based on an infrastructure architecture and reconstruction of Weblogic console passwords based on WLST;
1) multi-channel downloading of the application service package: the application component package can be derived from different public file services, corresponding download modules are developed for downloading the application package aiming at different sources, meanwhile, the docking of the gitlab service is supported, an http request is called through an interrupt to download the application war package from a gitlab server, and the package is downloaded to a fixed path of a target machine for deployment and use;
2) initializing a middleware environment based on an infrastructure: when configuring the corresponding middleware deployment environment, automatically selecting a coincident jdk version and Weblogic version from the virtual machine according to the corresponding middleware parameters, and initializing the middleware environment for subsequent deployment;
3) reconstructing a Weblogic console password based on an AdminAccount tool: reconstructing a 16-bit complex password for the safety of application service, and executing a self-developed modified console password script through an password to reconstruct a Weblogic console password;
weblogic application automation deployment: after the virtual resource is created and the deployment environment is constructed, automatically deploying in Weblogic by utilizing an android automatic execution application package, and monitoring whether Weblogic application logs are successfully started;
in the automatic deployment of the Weblogic application, the following concrete steps are performed:
1) the Anisble calls the script start console: the method comprises the steps that Weblogic middleware is deployed and initialized, a Weblogic console is started through an android calling Weblogic script, and whether adminServer starting is successful or not is monitored through checking an adminServer starting log;
2) data source creation based on WLST: calling a self-researched data source to create a script through an infrastructure shell module, wherein the script is used for configuring the data source in Weblogic based on a WLST command line tool of the Weblogic;
3) the answer calls the developer application deployment: the method comprises the steps that a Weblogic automatic deployment application package is used, and automatic deployment of a component package on Weblogic is achieved through an Angle execution Weblogic.
4) Starting and monitoring the Server application service: and starting the Weblogic application service, calling a starting script of the Weblogic hosted service through the android, starting the Weblogic application, and monitoring the success of the service starting according to the starting log of the application.
2. The method for deploying Weblogic application based on Ansible orchestration according to claim 1, wherein: the method comprises the following steps:
s1, a Weblogic application program is installed in a virtual machine template in the virtualization platform in advance, and when a Weblogic deployment request is received, a virtual machine is created and started by using the virtual machine template;
s2, executing the pre-programmed playbook through the virtual machine created by the infrastructure connection, and performing Weblogic application deployment;
s3 Ansible first downloads a deployment component package from a public file service, then carries out data source configuration and application release operation through a Weblogic-deployment and WLST command line tool, and finally completes the release of the Weblogic application.
CN201910879692.4A 2019-09-18 2019-09-18 Method for deploying Weblogic application based on Ansible layout Active CN110795108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910879692.4A CN110795108B (en) 2019-09-18 2019-09-18 Method for deploying Weblogic application based on Ansible layout

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910879692.4A CN110795108B (en) 2019-09-18 2019-09-18 Method for deploying Weblogic application based on Ansible layout

Publications (2)

Publication Number Publication Date
CN110795108A CN110795108A (en) 2020-02-14
CN110795108B true CN110795108B (en) 2022-08-16

Family

ID=69427323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910879692.4A Active CN110795108B (en) 2019-09-18 2019-09-18 Method for deploying Weblogic application based on Ansible layout

Country Status (1)

Country Link
CN (1) CN110795108B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181762A (en) * 2020-09-22 2021-01-05 城云科技(中国)有限公司 Software project application basic environment deployment and three-remote visualization processing method
CN112199157B (en) * 2020-10-16 2023-11-24 深圳无域科技技术有限公司 Cloud environment management method
CN112346818A (en) * 2020-11-02 2021-02-09 北京新媒传信科技有限公司 Container application deployment method and device, electronic equipment and storage medium
CN112363731A (en) * 2020-11-11 2021-02-12 杭州飞致云信息科技有限公司 Application automation deployment method and device and computer readable storage medium
CN112394946A (en) * 2020-11-17 2021-02-23 北京智齿博创科技有限公司 Operation and maintenance platform based on DevOps background
CN112508769A (en) * 2020-12-28 2021-03-16 浪潮云信息技术股份公司 Method for constructing multi-task computer vision application service based on deep learning

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088367A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for quickly deploying in virtualization environment
CN106406934A (en) * 2016-08-30 2017-02-15 广西电网有限责任公司 One-key automatic deployment method for SQL Server and Weblogic combination
CN109683921A (en) * 2018-12-28 2019-04-26 国网江苏省电力有限公司信息通信分公司 A kind of whole process system deployment method based on Automation of Electric Systems operation platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088367A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for quickly deploying in virtualization environment
CN106406934A (en) * 2016-08-30 2017-02-15 广西电网有限责任公司 One-key automatic deployment method for SQL Server and Weblogic combination
CN109683921A (en) * 2018-12-28 2019-04-26 国网江苏省电力有限公司信息通信分公司 A kind of whole process system deployment method based on Automation of Electric Systems operation platform

Also Published As

Publication number Publication date
CN110795108A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN110795108B (en) Method for deploying Weblogic application based on Ansible layout
US9032373B1 (en) End to end testing automation and parallel test execution
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
WO2017161338A1 (en) Continuous and automatic distributed application development and deployment
US10686608B2 (en) Secure, platform-independent code signing
CN105306225B (en) A kind of physical machine remote power-off method based on Openstack
CN104412231A (en) Systems and methods of creating custom virtual machines
US10747650B2 (en) Systems and methods for on-demand container-based development environments
CN110990026A (en) Automatic deployment method and system for PaaS platform
CN115292026B (en) Management method, device and equipment of container cluster and computer readable storage medium
CN113064595A (en) QT application program compiling method and device based on Docker mirror image
CN114297056A (en) Automatic testing method and system
CN112363731A (en) Application automation deployment method and device and computer readable storage medium
CN116339749A (en) Containerized DevOps method, system and equipment capable of performing task scheduling
CN113760462B (en) Construction method and device for verification environment of dispatching automation system
CN113254054A (en) Intelligent contract one-stop development system and method
CN113568791A (en) Automatic testing tool and method for server operating system based on multi-CPU architecture
WO2002075541A2 (en) Method and apparatus for providing application specific strategies to a java platform including start and stop policies
CN106406978B (en) Private cloud virtual machine template automatic manufacturing device and method
CN109753302B (en) Service method without service function based on hybrid cloud computing platform
CN115421847A (en) Management method and equipment for research, development, operation and maintenance platform and CICD (common information carrier) assembly line supporting multiple engines
US11425203B2 (en) Commissioning a virtualized network function
CN113282332A (en) Operation and maintenance processing method and device
CN105282180B (en) The processing method and processing device of service authentication
CN114265595A (en) Cloud native application development and deployment system and method based on intelligent contracts

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant