2025-05-19 02:13:36,237 - INFO - Domain Default found not creating
2025-05-19 02:13:36,471 - INFO - Project ctest-TestBasicPolicy-02427462 not found, creating it
2025-05-19 02:13:36,953 - INFO - Created Project:ctest-TestBasicPolicy-02427462, ID : 8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326
2025-05-19 02:13:38,417 - INFO - ================================================================================
2025-05-19 02:13:38,417 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-19 02:13:38,417 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-05-19 02:13:38,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-05-19 02:13:38,678 - INFO - Initial checks done. Running the testcase now
2025-05-19 02:13:38,679 - INFO -
2025-05-19 02:13:39,244 - DEBUG - Response for create_network : {'network': {'id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'name': 'ctest-vn-12747536', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-12747536'], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:13:39,459 - DEBUG - Response for create_subnet : {'subnet': {'id': '49675d9b-113b-4373-8d45-25de7d0ec9ad', 'name': '', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'network_id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'ip_version': 4, 'cidr': '106.80.237.192/26', 'allocation_pools': [{'start': '106.80.237.194', 'end': '106.80.237.254'}], 'gateway_ip': '106.80.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.80.237.194', 'tags': [], 'project_id': '8f2c2ac596a248a893ccce23ab9c0326'}}
2025-05-19 02:13:39,477 - INFO - Created VN ctest-vn-12747536
2025-05-19 02:13:39,531 - DEBUG - VN ctest-vn-12747536 UUID is 61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:39,850 - DEBUG - Response for create_network : {'network': {'id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'name': 'ctest-vn-76885055', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-76885055'], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:13:40,042 - DEBUG - Response for create_subnet : {'subnet': {'id': '7b150875-e46f-4637-b673-8a973a170e30', 'name': '', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'network_id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'ip_version': 4, 'cidr': '65.158.79.64/26', 'allocation_pools': [{'start': '65.158.79.66', 'end': '65.158.79.126'}], 'gateway_ip': '65.158.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.158.79.66', 'tags': [], 'project_id': '8f2c2ac596a248a893ccce23ab9c0326'}}
2025-05-19 02:13:40,061 - INFO - Created VN ctest-vn-76885055
2025-05-19 02:13:40,115 - DEBUG - VN ctest-vn-76885055 UUID is ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:40,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-05-19 02:13:40,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61afeeb4-0981-4590-bfc3-2959331d6c13', 'name': 'ctest-vn-12747536', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49675d9b-113b-4373-8d45-25de7d0ec9ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-12747536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']], 'subnet_ipam': [{'subnet_cidr': '106.80.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:13:40,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed8c4593-d80b-4152-9dd3-6447519cd3ff', 'name': 'ctest-vn-76885055', 'tenant_id': '8f2c2ac596a248a893ccce23ab9c0326', 'project_id': '8f2c2ac596a248a893ccce23ab9c0326', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7b150875-e46f-4637-b673-8a973a170e30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-vn-76885055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']], 'subnet_ipam': [{'subnet_cidr': '65.158.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-19 02:13:40,959 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-19 02:13:41,268 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-19 02:13:41,296 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23
2025-05-19 02:13:41,310 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326
2025-05-19 02:13:41,392 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,405 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,415 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b
2025-05-19 02:13:41,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b
2025-05-19 02:13:41,432 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f034a662-7ff4-40cf-a4ad-ed9783f510a3
2025-05-19 02:13:41,438 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-19 02:13:41,438 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,448 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b
2025-05-19 02:13:41,462 - INFO - Verified VN network id 8 for VN 61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,462 - INFO - Verifications in API Server for VN ctest-vn-12747536 passed
2025-05-19 02:13:41,462 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,476 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b
2025-05-19 02:13:41,484 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/635e75e8-355b-40df-bc64-8f6d2393b37b
2025-05-19 02:13:41,491 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f034a662-7ff4-40cf-a4ad-ed9783f510a3
2025-05-19 02:13:41,504 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02427462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7039107199624365456', 'uuid-lslong': '13817933544789208083'}, 'enable': 'true', 'created': '2025-05-19T02:13:39', 'last-modified': '2025-05-19T02:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999375'}
2025-05-19 02:13:41,511 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-19 02:13:41,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12747536 passed
2025-05-19 02:13:41,511 - DEBUG - ====Verifying policy data for ctest-vn-12747536 in API_Server ======
2025-05-19 02:13:41,511 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-19 02:13:41,517 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23
2025-05-19 02:13:41,529 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326
2025-05-19 02:13:41,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/61afeeb4-0981-4590-bfc3-2959331d6c13
2025-05-19 02:13:41,631 - DEBUG - ==>Verifying data for policy with id: 37d09c95-1640-47fb-999b-562b5c3f74a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']
2025-05-19 02:13:41,631 - INFO - VN ctest-vn-12747536 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-19 02:13:41,632 - DEBUG - Verifying the vn in opserver
2025-05-19 02:13:41,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536 virtual network link through opserver 10.0.0.22
2025-05-19 02:13:41,632 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-19 02:13:41,941 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-19 02:13:41,998 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536?flat'}
2025-05-19 02:13:41,998 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-12747536 is found in opserver
2025-05-19 02:13:42,009 - DEBUG - Do not have enough data to verify VN in agent
2025-05-19 02:13:42,014 - DEBUG - VRF ids for VN ctest-vn-12747536: {}
2025-05-19 02:13:42,014 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-19 02:13:42,020 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23
2025-05-19 02:13:42,032 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326
2025-05-19 02:13:42,117 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,143 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a
2025-05-19 02:13:42,156 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a
2025-05-19 02:13:42,166 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ba488d9-dfcf-472d-ab47-c8848eab61b4
2025-05-19 02:13:42,174 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-19 02:13:42,174 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,186 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a
2025-05-19 02:13:42,206 - INFO - Verified VN network id 9 for VN ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,207 - INFO - Verifications in API Server for VN ctest-vn-76885055 passed
2025-05-19 02:13:42,207 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,218 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a
2025-05-19 02:13:42,227 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c9f1f03-8ce7-40cb-965d-222a78408f7a
2025-05-19 02:13:42,239 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ba488d9-dfcf-472d-ab47-c8848eab61b4
2025-05-19 02:13:42,256 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02427462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17117132785015538002', 'uuid-lslong': '11372543741515322367'}, 'enable': 'true', 'created': '2025-05-19T02:13:39', 'last-modified': '2025-05-19T02:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510103'}
2025-05-19 02:13:42,262 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-19 02:13:42,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76885055 passed
2025-05-19 02:13:42,262 - DEBUG - ====Verifying policy data for ctest-vn-76885055 in API_Server ======
2025-05-19 02:13:42,262 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-19 02:13:42,269 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a75bdef7-0b1e-4cae-9f06-2e5cb4bb0f23
2025-05-19 02:13:42,281 - DEBUG - Requesting: http://10.0.0.22:8082/project/8f2c2ac5-96a2-48a8-93cc-ce23ab9c0326
2025-05-19 02:13:42,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/ed8c4593-d80b-4152-9dd3-6447519cd3ff
2025-05-19 02:13:42,370 - DEBUG - ==>Verifying data for policy with id: 37d09c95-1640-47fb-999b-562b5c3f74a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-02427462', 'ctest-policy-allow-all-47173274']
2025-05-19 02:13:42,370 - INFO - VN ctest-vn-76885055 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-19 02:13:42,370 - DEBUG - Verifying the vn in opserver
2025-05-19 02:13:42,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055 virtual network link through opserver 10.0.0.22
2025-05-19 02:13:42,371 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-19 02:13:42,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055?flat'}
2025-05-19 02:13:42,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02427462:ctest-vn-76885055 is found in opserver
2025-05-19 02:13:42,395 - DEBUG - Do not have enough data to verify VN in agent
2025-05-19 02:13:42,401 - DEBUG - VRF ids for VN ctest-vn-76885055: {}
2025-05-19 02:13:42,461 - DEBUG - Services list from nova: [