2024-08-22 14:25:36,185 - INFO - Domain Default found not creating
2024-08-22 14:25:36,359 - INFO - Project ctest-TestBasicPolicy-94349847 not found, creating it
2024-08-22 14:25:36,850 - INFO - Created Project:ctest-TestBasicPolicy-94349847, ID : 76b4a377-a246-4599-bec6-49f1c68bb787
2024-08-22 14:25:38,487 - INFO - ================================================================================
2024-08-22 14:25:38,487 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-22 14:25:38,488 - 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-22 14:25:38,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with
2024-08-22 14:25:38,745 - INFO - Initial checks done. Running the testcase now
2024-08-22 14:25:38,745 - INFO -
2024-08-22 14:25:39,346 - DEBUG - Response for create_network : {'network': {'id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'name': 'ctest-vn-51248251', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-51248251'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 14:25:39,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dbf4af7-098f-4e40-b3df-ad848bb5245e', 'name': '', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'network_id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'ip_version': 4, 'cidr': '210.176.156.64/26', 'allocation_pools': [{'start': '210.176.156.66', 'end': '210.176.156.126'}], 'gateway_ip': '210.176.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.176.156.66', 'tags': [], 'project_id': '76b4a377a2464599bec649f1c68bb787'}}
2024-08-22 14:25:39,532 - INFO - Created VN ctest-vn-51248251
2024-08-22 14:25:39,582 - DEBUG - VN ctest-vn-51248251 UUID is 03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:39,882 - DEBUG - Response for create_network : {'network': {'id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'name': 'ctest-vn-26563786', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-26563786'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 14:25:40,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e70c4c6-b212-4581-b4bd-90bf733ddb70', 'name': '', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'network_id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'ip_version': 4, 'cidr': '133.237.130.64/26', 'allocation_pools': [{'start': '133.237.130.66', 'end': '133.237.130.126'}], 'gateway_ip': '133.237.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.237.130.66', 'tags': [], 'project_id': '76b4a377a2464599bec649f1c68bb787'}}
2024-08-22 14:25:40,135 - INFO - Created VN ctest-vn-26563786
2024-08-22 14:25:40,186 - DEBUG - VN ctest-vn-26563786 UUID is 67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:40,305 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251, 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-94349847:ctest-vn-26563786, 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-22 14:25:40,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'name': 'ctest-vn-51248251', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dbf4af7-098f-4e40-b3df-ad848bb5245e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-51248251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']], 'subnet_ipam': [{'subnet_cidr': '210.176.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 14:25:40,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'name': 'ctest-vn-26563786', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e70c4c6-b212-4581-b4bd-90bf733ddb70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-26563786'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']], 'subnet_ipam': [{'subnet_cidr': '133.237.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 14:25:41,054 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-22 14:25:41,351 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-22 14:25:41,383 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289
2024-08-22 14:25:41,397 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787
2024-08-22 14:25:41,469 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,479 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,488 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f
2024-08-22 14:25:41,496 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f
2024-08-22 14:25:41,504 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a1a1fb32-7b44-44a5-a6d4-f578e11ec14c
2024-08-22 14:25:41,511 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 14:25:41,511 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,520 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f
2024-08-22 14:25:41,534 - INFO - Verified VN network id 9 for VN 03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,534 - INFO - Verifications in API Server for VN ctest-vn-51248251 passed
2024-08-22 14:25:41,534 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,543 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f
2024-08-22 14:25:41,551 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f
2024-08-22 14:25:41,558 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a1a1fb32-7b44-44a5-a6d4-f578e11ec14c
2024-08-22 14:25:41,574 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94349847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '257406746827837372', 'uuid-lslong': '10617489079284199891'}, 'enable': 'true', 'created': '2024-08-22T14:25:39', 'last-modified': '2024-08-22T14:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984325'}
2024-08-22 14:25:41,584 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 14:25:41,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51248251 passed
2024-08-22 14:25:41,584 - DEBUG - ====Verifying policy data for ctest-vn-51248251 in API_Server ======
2024-08-22 14:25:41,584 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-22 14:25:41,592 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289
2024-08-22 14:25:41,606 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787
2024-08-22 14:25:41,681 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3
2024-08-22 14:25:41,692 - DEBUG - ==>Verifying data for policy with id: 63663c03-ec84-48ea-a18a-49a01d832bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']
2024-08-22 14:25:41,692 - INFO - VN ctest-vn-51248251 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 14:25:41,692 - DEBUG - Verifying the vn in opserver
2024-08-22 14:25:41,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251 virtual network link through opserver 10.0.0.24
2024-08-22 14:25:41,692 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-22 14:25:41,985 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-22 14:25:42,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251?flat'}
2024-08-22 14:25:42,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251 is found in opserver
2024-08-22 14:25:42,061 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 14:25:42,067 - DEBUG - VRF ids for VN ctest-vn-51248251: {}
2024-08-22 14:25:42,067 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-22 14:25:42,074 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289
2024-08-22 14:25:42,085 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787
2024-08-22 14:25:42,152 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,162 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,171 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762
2024-08-22 14:25:42,179 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762
2024-08-22 14:25:42,186 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de0734c6-dcf1-4361-9a08-fb78d350a984
2024-08-22 14:25:42,194 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 14:25:42,194 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,203 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762
2024-08-22 14:25:42,216 - INFO - Verified VN network id 10 for VN 67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,216 - INFO - Verifications in API Server for VN ctest-vn-26563786 passed
2024-08-22 14:25:42,216 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,225 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762
2024-08-22 14:25:42,233 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762
2024-08-22 14:25:42,240 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de0734c6-dcf1-4361-9a08-fb78d350a984
2024-08-22 14:25:42,252 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94349847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7479253218604697163', 'uuid-lslong': '13468074865940130803'}, 'enable': 'true', 'created': '2024-08-22T14:25:39', 'last-modified': '2024-08-22T14:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420794'}
2024-08-22 14:25:42,260 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 14:25:42,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26563786 passed
2024-08-22 14:25:42,260 - DEBUG - ====Verifying policy data for ctest-vn-26563786 in API_Server ======
2024-08-22 14:25:42,260 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-22 14:25:42,266 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289
2024-08-22 14:25:42,279 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787
2024-08-22 14:25:42,348 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3
2024-08-22 14:25:42,356 - DEBUG - ==>Verifying data for policy with id: 63663c03-ec84-48ea-a18a-49a01d832bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']
2024-08-22 14:25:42,356 - INFO - VN ctest-vn-26563786 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 14:25:42,356 - DEBUG - Verifying the vn in opserver
2024-08-22 14:25:42,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786 virtual network link through opserver 10.0.0.24
2024-08-22 14:25:42,357 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-22 14:25:42,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786?flat'}
2024-08-22 14:25:42,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786 is found in opserver
2024-08-22 14:25:42,380 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 14:25:42,386 - DEBUG - VRF ids for VN ctest-vn-26563786: {}
2024-08-22 14:25:42,441 - DEBUG - Services list from nova: [