2024-10-28 16:50:33,602 - INFO - Domain Default found not creating
2024-10-28 16:50:33,792 - INFO - Project ctest-TestBasicPolicy-84200235 not found, creating it
2024-10-28 16:50:34,333 - INFO - Created Project:ctest-TestBasicPolicy-84200235, ID : 9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09
2024-10-28 16:50:36,069 - INFO - ================================================================================
2024-10-28 16:50:36,069 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 16:50:36,069 - 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-10-28 16:50:36,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.13': '0'}} with
2024-10-28 16:50:36,333 - INFO - Initial checks done. Running the testcase now
2024-10-28 16:50:36,333 - INFO -
2024-10-28 16:50:37,232 - DEBUG - Response for create_network : {'network': {'id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'name': 'ctest-vn-99417246', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-99417246'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:50:37,453 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5ff9822-fe98-4ae0-9a7e-0149cc9d036f', 'name': '', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'network_id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'ip_version': 4, 'cidr': '177.202.135.128/26', 'allocation_pools': [{'start': '177.202.135.130', 'end': '177.202.135.190'}], 'gateway_ip': '177.202.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.202.135.130', 'tags': [], 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09'}}
2024-10-28 16:50:37,476 - INFO - Created VN ctest-vn-99417246
2024-10-28 16:50:37,534 - DEBUG - VN ctest-vn-99417246 UUID is 3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:37,916 - DEBUG - Response for create_network : {'network': {'id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'name': 'ctest-vn-44750154', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-44750154'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:50:38,144 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8301fce-d1d2-44ea-a50f-b840ca92683a', 'name': '', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'network_id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'ip_version': 4, 'cidr': '24.205.226.192/26', 'allocation_pools': [{'start': '24.205.226.194', 'end': '24.205.226.254'}], 'gateway_ip': '24.205.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.205.226.194', 'tags': [], 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09'}}
2024-10-28 16:50:38,170 - INFO - Created VN ctest-vn-44750154
2024-10-28 16:50:38,238 - DEBUG - VN ctest-vn-44750154 UUID is 372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:38,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246, 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-84200235:ctest-vn-44750154, 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-10-28 16:50:38,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3786a5b5-3e13-4f4f-9a59-4441200c1050', 'name': 'ctest-vn-99417246', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5ff9822-fe98-4ae0-9a7e-0149cc9d036f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-99417246'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']], 'subnet_ipam': [{'subnet_cidr': '177.202.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:50:38,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '372235c4-8adb-4af3-b11d-29e9cfef117d', 'name': 'ctest-vn-44750154', 'tenant_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'project_id': '9a8ef7b7e7a24b1ba8523c8b72883a09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8301fce-d1d2-44ea-a50f-b840ca92683a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-vn-44750154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']], 'subnet_ipam': [{'subnet_cidr': '24.205.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:50:39,115 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-28 16:50:39,456 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-28 16:50:39,495 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546
2024-10-28 16:50:39,516 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09
2024-10-28 16:50:39,619 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,636 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,657 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699
2024-10-28 16:50:39,668 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699
2024-10-28 16:50:39,679 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c4a9a263-5ee0-4c29-8bf7-49c62669af2b
2024-10-28 16:50:39,689 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:50:39,689 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,707 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699
2024-10-28 16:50:39,733 - INFO - Verified VN network id 9 for VN 3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,733 - INFO - Verifications in API Server for VN ctest-vn-99417246 passed
2024-10-28 16:50:39,733 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,752 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699
2024-10-28 16:50:39,763 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/712986bf-f209-41a7-80d1-6d82ca957699
2024-10-28 16:50:39,773 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c4a9a263-5ee0-4c29-8bf7-49c62669af2b
2024-10-28 16:50:39,791 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84200235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4001067516814380879', 'uuid-lslong': '11121995801269375056'}, 'enable': 'true', 'created': '2024-10-28T16:50:37', 'last-modified': '2024-10-28T16:50:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.106035'}
2024-10-28 16:50:39,801 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:50:39,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99417246 passed
2024-10-28 16:50:39,801 - DEBUG - ====Verifying policy data for ctest-vn-99417246 in API_Server ======
2024-10-28 16:50:39,801 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-28 16:50:39,810 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546
2024-10-28 16:50:39,827 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09
2024-10-28 16:50:39,921 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/3786a5b5-3e13-4f4f-9a59-4441200c1050
2024-10-28 16:50:39,937 - DEBUG - ==>Verifying data for policy with id: 8e6c0699-bade-41a3-85dd-57789e636c7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']
2024-10-28 16:50:39,937 - INFO - VN ctest-vn-99417246 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:50:39,937 - DEBUG - Verifying the vn in opserver
2024-10-28 16:50:39,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246 virtual network link through opserver 10.0.0.12
2024-10-28 16:50:39,937 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-28 16:50:40,283 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-28 16:50:40,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246?flat'}
2024-10-28 16:50:40,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-99417246 is found in opserver
2024-10-28 16:50:40,374 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:50:40,380 - DEBUG - VRF ids for VN ctest-vn-99417246: {}
2024-10-28 16:50:40,381 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-28 16:50:40,388 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546
2024-10-28 16:50:40,408 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09
2024-10-28 16:50:40,498 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,517 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,533 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394
2024-10-28 16:50:40,542 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394
2024-10-28 16:50:40,552 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c54c730b-5d8f-43ac-ba30-42b175740908
2024-10-28 16:50:40,562 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:50:40,562 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,579 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394
2024-10-28 16:50:40,603 - INFO - Verified VN network id 10 for VN 372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,604 - INFO - Verifications in API Server for VN ctest-vn-44750154 passed
2024-10-28 16:50:40,604 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,620 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394
2024-10-28 16:50:40,630 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0d9e68d3-9755-40cd-886f-e95178282394
2024-10-28 16:50:40,639 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c54c730b-5d8f-43ac-ba30-42b175740908
2024-10-28 16:50:40,653 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84200235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3972796939553688307', 'uuid-lslong': '12762403003230523773'}, 'enable': 'true', 'created': '2024-10-28T16:50:37', 'last-modified': '2024-10-28T16:50:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.698110'}
2024-10-28 16:50:40,661 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:50:40,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44750154 passed
2024-10-28 16:50:40,661 - DEBUG - ====Verifying policy data for ctest-vn-44750154 in API_Server ======
2024-10-28 16:50:40,661 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-28 16:50:40,668 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dc6b56-0f72-4f7c-a7e6-5d20114e3546
2024-10-28 16:50:40,685 - DEBUG - Requesting: http://10.0.0.12:8082/project/9a8ef7b7-e7a2-4b1b-a852-3c8b72883a09
2024-10-28 16:50:40,774 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/372235c4-8adb-4af3-b11d-29e9cfef117d
2024-10-28 16:50:40,792 - DEBUG - ==>Verifying data for policy with id: 8e6c0699-bade-41a3-85dd-57789e636c7d, fqn: ['default-domain', 'ctest-TestBasicPolicy-84200235', 'ctest-policy-allow-all-37483462']
2024-10-28 16:50:40,792 - INFO - VN ctest-vn-44750154 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:50:40,793 - DEBUG - Verifying the vn in opserver
2024-10-28 16:50:40,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154 virtual network link through opserver 10.0.0.12
2024-10-28 16:50:40,793 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-28 16:50:40,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154?flat'}
2024-10-28 16:50:40,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84200235:ctest-vn-44750154 is found in opserver
2024-10-28 16:50:40,822 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:50:40,828 - DEBUG - VRF ids for VN ctest-vn-44750154: {}
2024-10-28 16:50:40,892 - DEBUG - Services list from nova: [