Unable to install more than one instance with same package version
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hai khai báo sql_server_install trong một wrapper cookbook trên Windows Server 2012 R2, sau đó kiểm tra resource windows_package được định nghĩa động hiển thị trong log. So sánh cách cả hai instance được nhận diện và xác minh rằng lần chạy hoàn tất sẽ cài đặt INSTANCE1 và INSTANCE2 thay vì coi package thứ hai là đã được cài đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Cookbook version
5.4.0 (with the fix https://github.com/chef-cookbooks/sql_server/pull/114)
Chef-client version
13.0.118
Platform Details
Windows Server 2012 R2
Scenario:
I'm trying to use custom ressource to install two or more instance on the same server.
Steps to Reproduce:
Create a wrapper cookbook with the following content in the recipe:
sql_server_install `Install SQL Server 2016 => instance1` do
source_url 'c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe'
version '2016'
package_checksum '0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64'
accept_eula true
instance_name 'INSTANCE1'
feature %w(SQLENGINE, CONN)
end
sql_server_install `Install SQL Server 2016 => instance2` do
source_url 'c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe'
version '2016'
package_checksum '0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64'
accept_eula true
instance_name 'INSTANCE2'
feature %w(SQLENGINE, CONN)
end
Expected Result:
I expect that the two instances are installed at the end of the chef-client
Actual Result:
Only the first instance is installed. The second instance show this message:
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] checking package version
[2018-01-10T14:28:10+01:00] INFO: Processing remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] action create (dynamically defined)
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checksumming file at c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe.
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checking for changes
[2018-01-10T14:28:10+01:00] DEBUG: remote_file[c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe] checksum matches target checksum (0a9a202671068ddd160f9d535f0ab8523048805dba852c4b9f79193227a6cc64) - not updating
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] fetched source file to c:\chef\cache\package\SQLServer2016SP1-FullSlipstream-x64-ENU.exe
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] checking package version
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] Microsoft SQL Server 2016 (64-bit) [nil] already installed
[2018-01-10T14:28:10+01:00] DEBUG: windows_package[Microsoft SQL Server 2016 (64-bit)] is already installed - nothing to do
This problem seems to be due to package ressource that is idempotent with the package name /display name from Windows Registry. I have no idea to bypass this :(
Best Regards,
- Ngôn ngữ chính
- Ruby
- Star
- 64
- Fork
- 116
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sous-chefs/sql_server
-
Dependency DashboardĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
sous-chefs/sql_server#184 ·
-
using my own installation mediaĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
sous-chefs/sql_server#158 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
sous-chefs/sql_server#131 · 5 bình luận ·
-
SSMS Latest Version on Sql2016Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
sous-chefs/sql_server#128 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
sous-chefs/sql_server#94 · 1 bình luận ·
Tất cả issue của sous-chefs/sql_server
Issue tương tự
-
Widget de foto do aluno duplica os controles quando o mesmo aluno está aberto em duas ediçõesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
we-promise/sure#4481 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
data error
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
riscv/riscv-unified-db#2772 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 8 ngày
-
unsupported shell: "l"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100