2024-08-27 04:52:17,775 - INFO - Domain Default found not creating
2024-08-27 04:52:17,942 - INFO - Project ctest-TestBasicPolicy-27714509 not found, creating it
2024-08-27 04:52:18,408 - INFO - Created Project:ctest-TestBasicPolicy-27714509, ID : 2eab4f8e-95ac-4de5-9a0a-595618e3e85a
2024-08-27 04:52:19,892 - INFO - ================================================================================
2024-08-27 04:52:19,892 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 04:52:19,892 - 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-08-27 04:52:20,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.19': '0'}} with
2024-08-27 04:52:20,153 - INFO - Initial checks done. Running the testcase now
2024-08-27 04:52:20,154 - INFO -
2024-08-27 04:52:21,753 - DEBUG - Response for create_network : {'network': {'id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'name': 'ctest-vn-73079694', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-73079694'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:52:21,973 - DEBUG - Response for create_subnet : {'subnet': {'id': '01035399-36dd-4d3d-b964-c73b5b3f7193', 'name': '', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'network_id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'ip_version': 4, 'cidr': '19.90.155.0/26', 'allocation_pools': [{'start': '19.90.155.2', 'end': '19.90.155.62'}], 'gateway_ip': '19.90.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.90.155.2', 'tags': [], 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a'}}
2024-08-27 04:52:21,994 - INFO - Created VN ctest-vn-73079694
2024-08-27 04:52:22,046 - DEBUG - VN ctest-vn-73079694 UUID is 661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:22,348 - DEBUG - Response for create_network : {'network': {'id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'name': 'ctest-vn-84385581', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-84385581'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:52:22,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '64c362f2-f953-411d-a453-46fb3f3ddab9', 'name': '', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'network_id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'ip_version': 4, 'cidr': '171.157.204.128/26', 'allocation_pools': [{'start': '171.157.204.130', 'end': '171.157.204.190'}], 'gateway_ip': '171.157.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.157.204.130', 'tags': [], 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a'}}
2024-08-27 04:52:22,580 - INFO - Created VN ctest-vn-84385581
2024-08-27 04:52:22,629 - DEBUG - VN ctest-vn-84385581 UUID is fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:22,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694, 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-27714509:ctest-vn-84385581, 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-08-27 04:52:23,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '661cbe82-f125-495d-94ee-6e1e0810b2f2', 'name': 'ctest-vn-73079694', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01035399-36dd-4d3d-b964-c73b5b3f7193'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-73079694'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']], 'subnet_ipam': [{'subnet_cidr': '19.90.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:52:23,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1', 'name': 'ctest-vn-84385581', 'tenant_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'project_id': '2eab4f8e95ac4de59a0a595618e3e85a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64c362f2-f953-411d-a453-46fb3f3ddab9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-vn-84385581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']], 'subnet_ipam': [{'subnet_cidr': '171.157.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:52:23,482 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-27 04:52:23,781 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-27 04:52:23,814 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee
2024-08-27 04:52:23,828 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a
2024-08-27 04:52:23,898 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:23,908 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:23,916 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9
2024-08-27 04:52:23,923 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9
2024-08-27 04:52:23,930 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5d5388f7-0295-46b9-b5cf-5673a8262e54
2024-08-27 04:52:23,939 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:52:23,939 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:23,949 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9
2024-08-27 04:52:23,968 - INFO - Verified VN network id 7 for VN 661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:23,968 - INFO - Verifications in API Server for VN ctest-vn-73079694 passed
2024-08-27 04:52:23,968 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:23,982 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9
2024-08-27 04:52:23,989 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/5ed5d628-4ade-416a-9baa-fc04a2954fc9
2024-08-27 04:52:23,995 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/5d5388f7-0295-46b9-b5cf-5673a8262e54
2024-08-27 04:52:24,008 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7357965360817326429', 'uuid-lslong': '10731636037333857010'}, 'enable': 'true', 'created': '2024-08-27T04:52:21', 'last-modified': '2024-08-27T04:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983628'}
2024-08-27 04:52:24,017 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:52:24,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73079694 passed
2024-08-27 04:52:24,017 - DEBUG - ====Verifying policy data for ctest-vn-73079694 in API_Server ======
2024-08-27 04:52:24,017 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-27 04:52:24,024 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee
2024-08-27 04:52:24,037 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a
2024-08-27 04:52:24,105 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/661cbe82-f125-495d-94ee-6e1e0810b2f2
2024-08-27 04:52:24,113 - DEBUG - ==>Verifying data for policy with id: 0ec077f4-030d-4e67-a195-197820a65841, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']
2024-08-27 04:52:24,113 - INFO - VN ctest-vn-73079694 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:52:24,113 - DEBUG - Verifying the vn in opserver
2024-08-27 04:52:24,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 virtual network link through opserver 10.0.0.44
2024-08-27 04:52:24,113 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-27 04:52:24,406 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-27 04:52:24,474 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694?flat'}
2024-08-27 04:52:24,474 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-73079694 is found in opserver
2024-08-27 04:52:24,485 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:52:24,491 - DEBUG - VRF ids for VN ctest-vn-73079694: {}
2024-08-27 04:52:24,491 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-27 04:52:24,497 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee
2024-08-27 04:52:24,509 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a
2024-08-27 04:52:24,574 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,585 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,593 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54
2024-08-27 04:52:24,601 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54
2024-08-27 04:52:24,608 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/d0ad4f78-0267-493b-8ca9-44cba5865fbf
2024-08-27 04:52:24,615 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:52:24,615 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,623 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54
2024-08-27 04:52:24,637 - INFO - Verified VN network id 8 for VN fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,637 - INFO - Verifications in API Server for VN ctest-vn-84385581 passed
2024-08-27 04:52:24,637 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,647 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54
2024-08-27 04:52:24,654 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/bc287822-dd9c-4bf6-9a04-628ad9e37f54
2024-08-27 04:52:24,661 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/d0ad4f78-0267-493b-8ca9-44cba5865fbf
2024-08-27 04:52:24,675 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27714509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18333193960147078292', 'uuid-lslong': '13267242368231989201'}, 'enable': 'true', 'created': '2024-08-27T04:52:22', 'last-modified': '2024-08-27T04:52:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.409547'}
2024-08-27 04:52:24,681 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:52:24,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84385581 passed
2024-08-27 04:52:24,681 - DEBUG - ====Verifying policy data for ctest-vn-84385581 in API_Server ======
2024-08-27 04:52:24,681 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-08-27 04:52:24,689 - DEBUG - Requesting: http://10.0.0.44:8082/domain/aaa751c5-376a-4283-9c10-0b6ca94af1ee
2024-08-27 04:52:24,702 - DEBUG - Requesting: http://10.0.0.44:8082/project/2eab4f8e-95ac-4de5-9a0a-595618e3e85a
2024-08-27 04:52:24,769 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/fe6c96c5-f8e7-4c94-b81e-b6a41b7adfd1
2024-08-27 04:52:24,777 - DEBUG - ==>Verifying data for policy with id: 0ec077f4-030d-4e67-a195-197820a65841, fqn: ['default-domain', 'ctest-TestBasicPolicy-27714509', 'ctest-policy-allow-all-83523489']
2024-08-27 04:52:24,777 - INFO - VN ctest-vn-84385581 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:52:24,777 - DEBUG - Verifying the vn in opserver
2024-08-27 04:52:24,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581 virtual network link through opserver 10.0.0.44
2024-08-27 04:52:24,777 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-08-27 04:52:24,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581?flat'}
2024-08-27 04:52:24,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27714509:ctest-vn-84385581 is found in opserver
2024-08-27 04:52:24,801 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:52:24,806 - DEBUG - VRF ids for VN ctest-vn-84385581: {}
2024-08-27 04:52:24,862 - DEBUG - Services list from nova: [