2024-11-10 21:07:26,266 - INFO - Domain Default found not creating
2024-11-10 21:07:26,534 - INFO - Project ctest-TestBasicPolicy-81488743 not found, creating it
2024-11-10 21:07:27,066 - INFO - Created Project:ctest-TestBasicPolicy-81488743, ID : 5dac5572-88d4-4e62-9121-6dd0dce632f1
2024-11-10 21:07:29,052 - INFO - ================================================================================
2024-11-10 21:07:29,052 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 21:07:29,053 - 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-10 21:07:29,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with
2024-11-10 21:07:29,321 - INFO - Initial checks done. Running the testcase now
2024-11-10 21:07:29,321 - INFO -
2024-11-10 21:07:29,996 - DEBUG - Response for create_network : {'network': {'id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'name': 'ctest-vn-36406363', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-36406363'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:07:30,246 - DEBUG - Response for create_subnet : {'subnet': {'id': '1258479d-114a-40d6-a673-dfc6c17ad82e', 'name': '', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'network_id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'ip_version': 4, 'cidr': '113.212.114.192/26', 'allocation_pools': [{'start': '113.212.114.194', 'end': '113.212.114.254'}], 'gateway_ip': '113.212.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.212.114.194', 'tags': [], 'project_id': '5dac557288d44e6291216dd0dce632f1'}}
2024-11-10 21:07:30,309 - INFO - Created VN ctest-vn-36406363
2024-11-10 21:07:30,371 - DEBUG - VN ctest-vn-36406363 UUID is 2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:30,821 - DEBUG - Response for create_network : {'network': {'id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'name': 'ctest-vn-39964874', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-39964874'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:07:31,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '739edd5f-31b7-4d18-9bd1-5c9ebc83f667', 'name': '', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'network_id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'ip_version': 4, 'cidr': '222.215.230.0/26', 'allocation_pools': [{'start': '222.215.230.2', 'end': '222.215.230.62'}], 'gateway_ip': '222.215.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.215.230.2', 'tags': [], 'project_id': '5dac557288d44e6291216dd0dce632f1'}}
2024-11-10 21:07:31,069 - INFO - Created VN ctest-vn-39964874
2024-11-10 21:07:31,167 - DEBUG - VN ctest-vn-39964874 UUID is a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:31,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363, 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-81488743:ctest-vn-39964874, 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-10 21:07:31,742 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c2fa01d-431d-4a6b-b398-f32e39efd798', 'name': 'ctest-vn-36406363', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1258479d-114a-40d6-a673-dfc6c17ad82e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-36406363'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']], 'subnet_ipam': [{'subnet_cidr': '113.212.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:07:32,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5909e35-f88d-4c10-9c66-f53626bd0b5e', 'name': 'ctest-vn-39964874', 'tenant_id': '5dac557288d44e6291216dd0dce632f1', 'project_id': '5dac557288d44e6291216dd0dce632f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['739edd5f-31b7-4d18-9bd1-5c9ebc83f667'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-vn-39964874'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']], 'subnet_ipam': [{'subnet_cidr': '222.215.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 21:07:32,287 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-10 21:07:32,614 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-10 21:07:32,649 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282
2024-11-10 21:07:32,664 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1
2024-11-10 21:07:32,751 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:32,767 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:32,782 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848
2024-11-10 21:07:32,792 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848
2024-11-10 21:07:32,808 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b9f554c1-1d62-4eec-921c-bd14a9cb23ec
2024-11-10 21:07:32,817 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:07:32,817 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:32,834 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848
2024-11-10 21:07:32,857 - INFO - Verified VN network id 8 for VN 2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:32,857 - INFO - Verifications in API Server for VN ctest-vn-36406363 passed
2024-11-10 21:07:32,857 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:32,874 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848
2024-11-10 21:07:32,886 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/316af5b1-9181-4110-b563-ea5ff5d36848
2024-11-10 21:07:32,898 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/b9f554c1-1d62-4eec-921c-bd14a9cb23ec
2024-11-10 21:07:32,914 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81488743', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3183939509114718827', 'uuid-lslong': '12941360909115185048'}, 'enable': 'true', 'created': '2024-11-10T21:07:29', 'last-modified': '2024-11-10T21:07:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.211473'}
2024-11-10 21:07:32,922 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 21:07:32,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36406363 passed
2024-11-10 21:07:32,922 - DEBUG - ====Verifying policy data for ctest-vn-36406363 in API_Server ======
2024-11-10 21:07:32,922 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-10 21:07:32,934 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282
2024-11-10 21:07:32,949 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1
2024-11-10 21:07:33,046 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2c2fa01d-431d-4a6b-b398-f32e39efd798
2024-11-10 21:07:33,063 - DEBUG - ==>Verifying data for policy with id: 54964b5b-752b-4630-ac27-fc272a72ecea, fqn: ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']
2024-11-10 21:07:33,063 - INFO - VN ctest-vn-36406363 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:07:33,063 - DEBUG - Verifying the vn in opserver
2024-11-10 21:07:33,063 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363 virtual network link through opserver 10.0.0.23
2024-11-10 21:07:33,063 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-10 21:07:33,373 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-10 21:07:33,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363?flat'}
2024-11-10 21:07:33,458 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-36406363 is found in opserver
2024-11-10 21:07:33,470 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:07:33,476 - DEBUG - VRF ids for VN ctest-vn-36406363: {}
2024-11-10 21:07:33,476 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-10 21:07:33,484 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282
2024-11-10 21:07:33,501 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1
2024-11-10 21:07:33,590 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,612 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,632 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb
2024-11-10 21:07:33,646 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb
2024-11-10 21:07:33,667 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9f9e7520-fc74-47b2-8cea-77cd7ce44a5f
2024-11-10 21:07:33,683 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:07:33,683 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,704 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb
2024-11-10 21:07:33,744 - INFO - Verified VN network id 9 for VN a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,744 - INFO - Verifications in API Server for VN ctest-vn-39964874 passed
2024-11-10 21:07:33,744 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,762 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb
2024-11-10 21:07:33,774 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/773b5563-0986-43ee-b84a-32679c9605eb
2024-11-10 21:07:33,785 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9f9e7520-fc74-47b2-8cea-77cd7ce44a5f
2024-11-10 21:07:33,800 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81488743', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11930209367544908816', 'uuid-lslong': '11269964730468207454'}, 'enable': 'true', 'created': '2024-11-10T21:07:30', 'last-modified': '2024-11-10T21:07:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.749237'}
2024-11-10 21:07:33,807 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 21:07:33,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39964874 passed
2024-11-10 21:07:33,808 - DEBUG - ====Verifying policy data for ctest-vn-39964874 in API_Server ======
2024-11-10 21:07:33,808 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-10 21:07:33,815 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4d49b6cf-6b5a-49b8-92cd-1b6a35011282
2024-11-10 21:07:33,833 - DEBUG - Requesting: http://10.0.0.23:8082/project/5dac5572-88d4-4e62-9121-6dd0dce632f1
2024-11-10 21:07:33,918 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a5909e35-f88d-4c10-9c66-f53626bd0b5e
2024-11-10 21:07:33,934 - DEBUG - ==>Verifying data for policy with id: 54964b5b-752b-4630-ac27-fc272a72ecea, fqn: ['default-domain', 'ctest-TestBasicPolicy-81488743', 'ctest-policy-allow-all-72647727']
2024-11-10 21:07:33,934 - INFO - VN ctest-vn-39964874 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 21:07:33,935 - DEBUG - Verifying the vn in opserver
2024-11-10 21:07:33,935 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874 virtual network link through opserver 10.0.0.23
2024-11-10 21:07:33,935 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-10 21:07:33,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874?flat'}
2024-11-10 21:07:33,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81488743:ctest-vn-39964874 is found in opserver
2024-11-10 21:07:33,962 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 21:07:33,967 - DEBUG - VRF ids for VN ctest-vn-39964874: {}
2024-11-10 21:07:34,033 - DEBUG - Services list from nova: [