2024-11-13 08:48:01,995 - INFO - Domain Default found not creating
2024-11-13 08:48:02,197 - INFO - Project ctest-TestBasicPolicy-13233399 not found, creating it
2024-11-13 08:48:02,725 - INFO - Created Project:ctest-TestBasicPolicy-13233399, ID : 9b99d7be-3e99-48b3-b330-c9bc83fbc75b
2024-11-13 08:48:04,307 - INFO - ================================================================================
2024-11-13 08:48:04,307 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-13 08:48:04,308 - 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
2024-11-13 08:48:04,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.13': '0'}} with
2024-11-13 08:48:04,586 - INFO - Initial checks done. Running the testcase now
2024-11-13 08:48:04,586 - INFO -
2024-11-13 08:48:05,238 - DEBUG - Response for create_network : {'network': {'id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'name': 'ctest-vn-32678622', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-32678622'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:48:05,419 - DEBUG - Response for create_subnet : {'subnet': {'id': '7037cced-7ca8-45e5-8ba6-dc3d6273fa6c', 'name': '', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'network_id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'ip_version': 4, 'cidr': '93.130.53.192/26', 'allocation_pools': [{'start': '93.130.53.194', 'end': '93.130.53.254'}], 'gateway_ip': '93.130.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.130.53.194', 'tags': [], 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b'}}
2024-11-13 08:48:05,447 - INFO - Created VN ctest-vn-32678622
2024-11-13 08:48:05,508 - DEBUG - VN ctest-vn-32678622 UUID is b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:05,883 - DEBUG - Response for create_network : {'network': {'id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'name': 'ctest-vn-33826865', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-33826865'], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:48:06,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bfd3547-4220-4465-9404-5e5932b1a9e0', 'name': '', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'network_id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'ip_version': 4, 'cidr': '37.126.24.64/26', 'allocation_pools': [{'start': '37.126.24.66', 'end': '37.126.24.126'}], 'gateway_ip': '37.126.24.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.126.24.66', 'tags': [], 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b'}}
2024-11-13 08:48:06,083 - INFO - Created VN ctest-vn-33826865
2024-11-13 08:48:06,139 - DEBUG - VN ctest-vn-33826865 UUID is 2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:06,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622, 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-13233399:ctest-vn-33826865, 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]
2024-11-13 08:48:06,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'name': 'ctest-vn-32678622', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7037cced-7ca8-45e5-8ba6-dc3d6273fa6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-32678622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']], 'subnet_ipam': [{'subnet_cidr': '93.130.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:48:06,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'name': 'ctest-vn-33826865', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bfd3547-4220-4465-9404-5e5932b1a9e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-33826865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']], 'subnet_ipam': [{'subnet_cidr': '37.126.24.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-13 08:48:07,028 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-13 08:48:07,333 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-13 08:48:07,372 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c
2024-11-13 08:48:07,391 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b
2024-11-13 08:48:07,482 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,499 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,514 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81
2024-11-13 08:48:07,524 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81
2024-11-13 08:48:07,535 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/39eebc79-865c-4e44-8f77-d8e086ec8848
2024-11-13 08:48:07,542 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 08:48:07,542 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,556 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81
2024-11-13 08:48:07,579 - INFO - Verified VN network id 8 for VN b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,579 - INFO - Verifications in API Server for VN ctest-vn-32678622 passed
2024-11-13 08:48:07,579 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,594 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81
2024-11-13 08:48:07,603 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81
2024-11-13 08:48:07,612 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/39eebc79-865c-4e44-8f77-d8e086ec8848
2024-11-13 08:48:07,628 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13233399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13235722513321709538', 'uuid-lslong': '10485738407534487296'}, 'enable': 'true', 'created': '2024-11-13T08:48:05', 'last-modified': '2024-11-13T08:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059012'}
2024-11-13 08:48:07,636 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-13 08:48:07,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32678622 passed
2024-11-13 08:48:07,636 - DEBUG - ====Verifying policy data for ctest-vn-32678622 in API_Server ======
2024-11-13 08:48:07,636 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-13 08:48:07,643 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c
2024-11-13 08:48:07,659 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b
2024-11-13 08:48:07,743 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700
2024-11-13 08:48:07,759 - DEBUG - ==>Verifying data for policy with id: 0d67fccf-978c-469e-9a5a-6ab883f081d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']
2024-11-13 08:48:07,760 - INFO - VN ctest-vn-32678622 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 08:48:07,760 - DEBUG - Verifying the vn in opserver
2024-11-13 08:48:07,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622 virtual network link through opserver 10.0.0.24
2024-11-13 08:48:07,760 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-13 08:48:08,061 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-13 08:48:08,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622?flat'}
2024-11-13 08:48:08,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622 is found in opserver
2024-11-13 08:48:08,148 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 08:48:08,154 - DEBUG - VRF ids for VN ctest-vn-32678622: {}
2024-11-13 08:48:08,154 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-13 08:48:08,161 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c
2024-11-13 08:48:08,175 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b
2024-11-13 08:48:08,262 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,280 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,296 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249
2024-11-13 08:48:08,306 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249
2024-11-13 08:48:08,316 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ca66b527-ae26-4d42-9b01-506106a1317f
2024-11-13 08:48:08,324 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 08:48:08,324 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249
2024-11-13 08:48:08,361 - INFO - Verified VN network id 9 for VN 2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,362 - INFO - Verifications in API Server for VN ctest-vn-33826865 passed
2024-11-13 08:48:08,362 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,377 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249
2024-11-13 08:48:08,389 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249
2024-11-13 08:48:08,400 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ca66b527-ae26-4d42-9b01-506106a1317f
2024-11-13 08:48:08,416 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13233399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3071211404674354857', 'uuid-lslong': '9300421892034836694'}, 'enable': 'true', 'created': '2024-11-13T08:48:05', 'last-modified': '2024-11-13T08:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.584842'}
2024-11-13 08:48:08,423 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-13 08:48:08,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33826865 passed
2024-11-13 08:48:08,423 - DEBUG - ====Verifying policy data for ctest-vn-33826865 in API_Server ======
2024-11-13 08:48:08,423 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-13 08:48:08,430 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c
2024-11-13 08:48:08,445 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b
2024-11-13 08:48:08,527 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6
2024-11-13 08:48:08,542 - DEBUG - ==>Verifying data for policy with id: 0d67fccf-978c-469e-9a5a-6ab883f081d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']
2024-11-13 08:48:08,542 - INFO - VN ctest-vn-33826865 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-13 08:48:08,542 - DEBUG - Verifying the vn in opserver
2024-11-13 08:48:08,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865 virtual network link through opserver 10.0.0.24
2024-11-13 08:48:08,542 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-13 08:48:08,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865?flat'}
2024-11-13 08:48:08,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865 is found in opserver
2024-11-13 08:48:08,566 - DEBUG - Do not have enough data to verify VN in agent
2024-11-13 08:48:08,573 - DEBUG - VRF ids for VN ctest-vn-33826865: {}
2024-11-13 08:48:08,640 - DEBUG - Services list from nova: [