2024-09-04 16:23:24,832 - INFO - Domain Default found not creating
2024-09-04 16:23:24,995 - INFO - Project ctest-TestBasicPolicy-28089018 not found, creating it
2024-09-04 16:23:25,439 - INFO - Created Project:ctest-TestBasicPolicy-28089018, ID : d66066fc-c0d8-4b76-983e-1a2f78d16a7d
2024-09-04 16:23:26,921 - INFO - ================================================================================
2024-09-04 16:23:26,922 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-04 16:23:26,922 - 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-09-04 16:23:27,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.32': '0'}} with
2024-09-04 16:23:27,181 - INFO - Initial checks done. Running the testcase now
2024-09-04 16:23:27,181 - INFO -
2024-09-04 16:23:27,742 - DEBUG - Response for create_network : {'network': {'id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'name': 'ctest-vn-85268027', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-85268027'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 16:23:27,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b049366-572c-4e2e-9731-7a4a6fc999f3', 'name': '', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'network_id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'ip_version': 4, 'cidr': '29.127.10.0/26', 'allocation_pools': [{'start': '29.127.10.2', 'end': '29.127.10.62'}], 'gateway_ip': '29.127.10.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.127.10.2', 'tags': [], 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d'}}
2024-09-04 16:23:27,983 - INFO - Created VN ctest-vn-85268027
2024-09-04 16:23:28,037 - DEBUG - VN ctest-vn-85268027 UUID is a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:28,342 - DEBUG - Response for create_network : {'network': {'id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'name': 'ctest-vn-78790016', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-78790016'], 'port_security_enabled': True, 'description': ''}}
2024-09-04 16:23:28,557 - DEBUG - Response for create_subnet : {'subnet': {'id': '1801fa52-b9a7-4fc8-aa87-f4104071ab3e', 'name': '', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'network_id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'ip_version': 4, 'cidr': '123.206.76.192/26', 'allocation_pools': [{'start': '123.206.76.194', 'end': '123.206.76.254'}], 'gateway_ip': '123.206.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.206.76.194', 'tags': [], 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d'}}
2024-09-04 16:23:28,582 - INFO - Created VN ctest-vn-78790016
2024-09-04 16:23:28,633 - DEBUG - VN ctest-vn-78790016 UUID is 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:28,752 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027, 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-28089018:ctest-vn-78790016, 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-09-04 16:23:29,045 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a67d4616-1787-4bbf-b79a-37e07000161d', 'name': 'ctest-vn-85268027', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b049366-572c-4e2e-9731-7a4a6fc999f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-85268027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']], 'subnet_ipam': [{'subnet_cidr': '29.127.10.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 16:23:29,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0961cf75-dacd-4fb6-8d9a-ce20e415ce1d', 'name': 'ctest-vn-78790016', 'tenant_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'project_id': 'd66066fcc0d84b76983e1a2f78d16a7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1801fa52-b9a7-4fc8-aa87-f4104071ab3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-vn-78790016'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']], 'subnet_ipam': [{'subnet_cidr': '123.206.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-04 16:23:29,469 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-04 16:23:29,774 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-04 16:23:29,802 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6
2024-09-04 16:23:29,816 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d
2024-09-04 16:23:29,888 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:29,897 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:29,904 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5
2024-09-04 16:23:29,911 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5
2024-09-04 16:23:29,917 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/1ed4db27-09a3-45f7-bd7b-94adc31ba55a
2024-09-04 16:23:29,923 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 16:23:29,923 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:29,930 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5
2024-09-04 16:23:29,941 - INFO - Verified VN network id 9 for VN a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:29,941 - INFO - Verifications in API Server for VN ctest-vn-85268027 passed
2024-09-04 16:23:29,941 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:29,949 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5
2024-09-04 16:23:29,956 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d9cacbfa-c4ee-4ad9-bea1-a9c80208dde5
2024-09-04 16:23:29,962 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/1ed4db27-09a3-45f7-bd7b-94adc31ba55a
2024-09-04 16:23:29,975 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28089018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11996822043082836927', 'uuid-lslong': '13229948292445509149'}, 'enable': 'true', 'created': '2024-09-04T16:23:27', 'last-modified': '2024-09-04T16:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950517'}
2024-09-04 16:23:29,982 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-04 16:23:29,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85268027 passed
2024-09-04 16:23:29,983 - DEBUG - ====Verifying policy data for ctest-vn-85268027 in API_Server ======
2024-09-04 16:23:29,983 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-04 16:23:29,989 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6
2024-09-04 16:23:30,000 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d
2024-09-04 16:23:30,071 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/a67d4616-1787-4bbf-b79a-37e07000161d
2024-09-04 16:23:30,080 - DEBUG - ==>Verifying data for policy with id: 54dead83-50d5-4254-9ae5-19492f424960, fqn: ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']
2024-09-04 16:23:30,080 - INFO - VN ctest-vn-85268027 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 16:23:30,080 - DEBUG - Verifying the vn in opserver
2024-09-04 16:23:30,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027 virtual network link through opserver 10.0.0.37
2024-09-04 16:23:30,080 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-04 16:23:30,375 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-04 16:23:30,442 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027?flat'}
2024-09-04 16:23:30,442 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-85268027 is found in opserver
2024-09-04 16:23:30,454 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 16:23:30,459 - DEBUG - VRF ids for VN ctest-vn-85268027: {}
2024-09-04 16:23:30,459 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-04 16:23:30,464 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6
2024-09-04 16:23:30,476 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d
2024-09-04 16:23:30,543 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,553 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,561 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439
2024-09-04 16:23:30,567 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439
2024-09-04 16:23:30,574 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/c33f9131-047b-401e-89ff-b599c1f9c3d8
2024-09-04 16:23:30,580 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 16:23:30,580 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,587 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439
2024-09-04 16:23:30,598 - INFO - Verified VN network id 10 for VN 0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,599 - INFO - Verifications in API Server for VN ctest-vn-78790016 passed
2024-09-04 16:23:30,599 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,606 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439
2024-09-04 16:23:30,612 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/7a18d62b-9776-4481-960c-607f93676439
2024-09-04 16:23:30,618 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/c33f9131-047b-401e-89ff-b599c1f9c3d8
2024-09-04 16:23:30,629 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28089018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '676049524171296694', 'uuid-lslong': '10203694546422189597'}, 'enable': 'true', 'created': '2024-09-04T16:23:28', 'last-modified': '2024-09-04T16:23:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.365427'}
2024-09-04 16:23:30,635 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-04 16:23:30,635 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78790016 passed
2024-09-04 16:23:30,635 - DEBUG - ====Verifying policy data for ctest-vn-78790016 in API_Server ======
2024-09-04 16:23:30,636 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-04 16:23:30,641 - DEBUG - Requesting: http://10.0.0.37:8082/domain/1b0709c6-79fd-4f19-b61b-19b332b3cbe6
2024-09-04 16:23:30,652 - DEBUG - Requesting: http://10.0.0.37:8082/project/d66066fc-c0d8-4b76-983e-1a2f78d16a7d
2024-09-04 16:23:30,728 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/0961cf75-dacd-4fb6-8d9a-ce20e415ce1d
2024-09-04 16:23:30,737 - DEBUG - ==>Verifying data for policy with id: 54dead83-50d5-4254-9ae5-19492f424960, fqn: ['default-domain', 'ctest-TestBasicPolicy-28089018', 'ctest-policy-allow-all-10623854']
2024-09-04 16:23:30,737 - INFO - VN ctest-vn-78790016 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-04 16:23:30,737 - DEBUG - Verifying the vn in opserver
2024-09-04 16:23:30,737 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016 virtual network link through opserver 10.0.0.37
2024-09-04 16:23:30,737 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-04 16:23:30,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016?flat'}
2024-09-04 16:23:30,748 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28089018:ctest-vn-78790016 is found in opserver
2024-09-04 16:23:30,758 - DEBUG - Do not have enough data to verify VN in agent
2024-09-04 16:23:30,762 - DEBUG - VRF ids for VN ctest-vn-78790016: {}
2024-09-04 16:23:30,825 - DEBUG - Services list from nova: [